|
|
|
|
@ -235,17 +235,18 @@ export class AddEditComponent {
@@ -235,17 +235,18 @@ export class AddEditComponent {
|
|
|
|
|
} catch { } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async generatePassword() { |
|
|
|
|
async generatePassword(): Promise<boolean> { |
|
|
|
|
if (this.cipher.login != null && this.cipher.login.password != null && this.cipher.login.password.length) { |
|
|
|
|
const confirmed = await this.platformUtilsService.showDialog( |
|
|
|
|
this.i18nService.t('overwritePasswordConfirmation'), this.i18nService.t('overwritePassword'), |
|
|
|
|
this.i18nService.t('yes'), this.i18nService.t('no')); |
|
|
|
|
if (!confirmed) { |
|
|
|
|
return; |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.onGeneratePassword.emit(); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
togglePassword() { |
|
|
|
|
|