converted confirm dialog to new pattern

This commit is contained in:
zadam
2022-06-16 20:19:26 +02:00
parent b45df29937
commit 1d037d3f0f
18 changed files with 149 additions and 142 deletions

View File

@@ -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
};