Доработка формы ввода пароля

This commit is contained in:
Book Pauk
2022-09-26 18:19:46 +07:00
parent 0b6b014d5f
commit 90c41f3c37
2 changed files with 76 additions and 7 deletions

View File

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