Make cancellable withour exception

This commit is contained in:
Oliver Rümpelein 2021-01-13 17:11:07 +01:00
parent bbd4ce7c07
commit 2d809c955b

View file

@ -27,6 +27,7 @@ class CheckFactory {
) {
this.checkOptions = new DefaultCheckOptions().mergeWith(passedOptions);
}
private checkOptions: DS4CheckFactoryOptions;
async execute(): Promise<void> {
@ -126,7 +127,9 @@ async function askGmModifier(
new Dialog(
{
title: title ?? "Roll Options",
close: (html: JQuery) => resolve(null),
close: () => {
// Don't do anything
},
content: renderedHtml,
buttons: {
ok: {
@ -142,7 +145,9 @@ async function askGmModifier(
},
cancel: {
label: "Cancel",
callback: (html: JQuery) => resolve(null),
callback: () => {
// Don't do anything
},
},
},
default: "ok",