From 90c41f3c371f63c9c5e36e1473a13bc85d73aee6 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Mon, 26 Sep 2022 18:19:46 +0700 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=20=D1=84=D0=BE=D1=80=D0=BC=D1=8B=20=D0=B2=D0=B2?= =?UTF-8?q?=D0=BE=D0=B4=D0=B0=20=D0=BF=D0=B0=D1=80=D0=BE=D0=BB=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Api/Api.vue | 6 ++- client/components/share/StdDialog.vue | 77 ++++++++++++++++++++++++--- 2 files changed, 76 insertions(+), 7 deletions(-) diff --git a/client/components/Api/Api.vue b/client/components/Api/Api.vue index 6c98fc0..c9869d0 100644 --- a/client/components/Api/Api.vue +++ b/client/components/Api/Api.vue @@ -143,8 +143,12 @@ class Api { async showPasswordDialog() { - const result = await this.$root.stdDialog.prompt(`Введите пароль для доступа:`, ' ', { + const result = await this.$root.stdDialog.password(`Введите пароль для доступа:`, ' ', { inputValidator: (str) => (str ? true : 'Пароль не должен быть пустым'), + userName: 'access', + noEscDismiss: true, + noBackdropDismiss: true, + noCancel: true, }); if (result && result.value) { diff --git a/client/components/share/StdDialog.vue b/client/components/share/StdDialog.vue index 0d00d0f..3d68e8c 100644 --- a/client/components/share/StdDialog.vue +++ b/client/components/share/StdDialog.vue @@ -1,5 +1,5 @@