mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-26 01:18:21 +01:00
fix: Dialog scheme not found when it is defined outside of the dialogs namespace
This commit is contained in:
parent
ae91401965
commit
b490ae9d42
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