mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-11-16 01:38:21 +01:00
fix: Dialog scheme not found when it is defined outside of the dialogs namespace
All checks were successful
gitea-sync/antos/pipeline/head This commit looks good
All checks were successful
gitea-sync/antos/pipeline/head This commit looks good
This commit is contained in:
parent
5101afe1b9
commit
eea1f18777
1
d.ts/antos.d.ts
vendored
1
d.ts/antos.d.ts
vendored
@ -475,6 +475,7 @@ declare namespace OS {
|
||||
* @extends {BaseDialog}
|
||||
*/
|
||||
class BasicDialog extends BaseDialog {
|
||||
['constructor']: typeof BasicDialog;
|
||||
/**
|
||||
* Placeholder for the UI scheme to be rendered. This can
|
||||
* be either the string definition of the scheme or
|
||||
|
@ -236,6 +236,7 @@ namespace OS {
|
||||
* @extends {BaseDialog}
|
||||
*/
|
||||
export class BasicDialog extends BaseDialog {
|
||||
['constructor']: typeof BasicDialog
|
||||
/**
|
||||
* Placeholder for the UI scheme to be rendered. This can
|
||||
* be either the string definition of the scheme or
|
||||
@ -290,10 +291,9 @@ namespace OS {
|
||||
return this.render(this.markup.path);
|
||||
}
|
||||
} else if (
|
||||
GUI.dialogs[this.name] &&
|
||||
GUI.dialogs[this.name].scheme
|
||||
this.constructor.scheme
|
||||
) {
|
||||
const html: string = GUI.dialogs[this.name].scheme;
|
||||
const html: string = this.constructor.scheme;
|
||||
return GUI.htmlToScheme(html.trim(), this, this.host);
|
||||
} else {
|
||||
this.error(__("Unable to find dialog scheme"));
|
||||
|
Loading…
Reference in New Issue
Block a user