Make cancellable withour exception
This commit is contained in:
parent
bbd4ce7c07
commit
2d809c955b
1 changed files with 7 additions and 2 deletions
|
@ -27,6 +27,7 @@ class CheckFactory {
|
||||||
) {
|
) {
|
||||||
this.checkOptions = new DefaultCheckOptions().mergeWith(passedOptions);
|
this.checkOptions = new DefaultCheckOptions().mergeWith(passedOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
private checkOptions: DS4CheckFactoryOptions;
|
private checkOptions: DS4CheckFactoryOptions;
|
||||||
|
|
||||||
async execute(): Promise<void> {
|
async execute(): Promise<void> {
|
||||||
|
@ -126,7 +127,9 @@ async function askGmModifier(
|
||||||
new Dialog(
|
new Dialog(
|
||||||
{
|
{
|
||||||
title: title ?? "Roll Options",
|
title: title ?? "Roll Options",
|
||||||
close: (html: JQuery) => resolve(null),
|
close: () => {
|
||||||
|
// Don't do anything
|
||||||
|
},
|
||||||
content: renderedHtml,
|
content: renderedHtml,
|
||||||
buttons: {
|
buttons: {
|
||||||
ok: {
|
ok: {
|
||||||
|
@ -142,7 +145,9 @@ async function askGmModifier(
|
||||||
},
|
},
|
||||||
cancel: {
|
cancel: {
|
||||||
label: "Cancel",
|
label: "Cancel",
|
||||||
callback: (html: JQuery) => resolve(null),
|
callback: () => {
|
||||||
|
// Don't do anything
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: "ok",
|
default: "ok",
|
||||||
|
|
Loading…
Reference in a new issue