mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
17 lines
390 B
JavaScript
17 lines
390 B
JavaScript
import appContext from "../services/app_context.js";
|
|
|
|
async function info(message) {
|
|
return new Promise(res =>
|
|
appContext.triggerCommand("showInfoDialog", {message, callback: res}));
|
|
}
|
|
|
|
async function confirm(message) {
|
|
return new Promise(res =>
|
|
appContext.triggerCommand("showConfirmDialog", {message, callback: res}));
|
|
}
|
|
|
|
export default {
|
|
info,
|
|
confirm
|
|
};
|