mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
converted info dialog to new pattern
This commit is contained in:
10
src/public/app/widgets/dialog.js
Normal file
10
src/public/app/widgets/dialog.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import appContext from "../services/app_context.js";
|
||||
|
||||
async function info(message) {
|
||||
return new Promise(res =>
|
||||
appContext.triggerCommand("showInfoDialog", {message, callback: res}));
|
||||
}
|
||||
|
||||
export default {
|
||||
info
|
||||
};
|
||||
Reference in New Issue
Block a user