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 @@