mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
converted confirm dialog to new pattern
This commit is contained in:
@@ -5,6 +5,12 @@ async function info(message) {
|
||||
appContext.triggerCommand("showInfoDialog", {message, callback: res}));
|
||||
}
|
||||
|
||||
async function confirm(message) {
|
||||
return new Promise(res =>
|
||||
appContext.triggerCommand("showConfirmDialog", {message, callback: res}));
|
||||
}
|
||||
|
||||
export default {
|
||||
info
|
||||
info,
|
||||
confirm
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user