ui: fix tpl

This commit is contained in:
undefined committed 2024-08-11 02:00:19 +08:00
1 parent 5d5fe3c09c
commit 0d2d84d114
6 files changed
+13 -14

No files matched your search

@@ -109,9 +109,8 @@ export default class DomDialog extends DOMAttachedObject {
}
show() {
if (this.isShown || this.isAnimating) {
return Promise.reject();
}
if (this.isShown) return Promise.reject(new Error('dialog isShown'));
if (this.isAnimating) return Promise.reject(new Error('dialog isAnimating'));
const promise = new Promise<string>((resolve) => {
this._resolve = resolve;
});