We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9674764 commit 89cf89fCopy full SHA for 89cf89f
1 file changed
frontend/src/ts/elements/simple-modal.ts
@@ -53,7 +53,7 @@ export class SimpleModal {
53
inputs: FormInput[];
54
text?: string;
55
textAllowHtml: boolean;
56
- buttonText: string;
+ buttonText?: string;
57
execFn: (thisPopup: SimpleModal, ...params: string[]) => Promise<ExecReturn>;
58
beforeInitFn: ((thisPopup: SimpleModal) => void) | undefined;
59
beforeShowFn: ((thisPopup: SimpleModal) => void) | undefined;
@@ -101,7 +101,7 @@ export class SimpleModal {
101
102
this.initInputs();
103
104
- if (this.buttonText === "") {
+ if (this.buttonText === "" || this.buttonText === undefined) {
105
this.element.qs(".submitButton")?.remove();
106
} else {
107
this.element.qs(".submitButton")?.setText(this.buttonText);
0 commit comments