diff --git a/client/components/share/StdDialog.vue b/client/components/share/StdDialog.vue index 384585df..057299fc 100644 --- a/client/components/share/StdDialog.vue +++ b/client/components/share/StdDialog.vue @@ -55,6 +55,34 @@ + +
+
+
+ +
+
+
+ + + +
+
+ +
+
+
+ +
+ + Нет + + + Да + +
+
+
@@ -262,6 +290,23 @@ class StdDialog { }); } + askYesNo(message, caption, opts) { + return new Promise((resolve) => { + this.init(message, caption, opts); + + this.hideTrigger = () => { + if (this.ok) { + resolve(true); + } else { + resolve(false); + } + }; + + this.type = 'askYesNo'; + this.active = true; + }); + } + prompt(message, caption, opts) { return new Promise((resolve) => { this.enableValidator = false;