show New password after removing a password (#11697)
This commit is contained in:
parent
619618e6f3
commit
adabc59c03
|
@ -12,7 +12,7 @@
|
|||
>
|
||||
</bit-form-field>
|
||||
<bit-form-field>
|
||||
<bit-label>{{ "password" | i18n }}</bit-label>
|
||||
<bit-label>{{ (passwordRemoved ? "newPassword" : "password") | i18n }}</bit-label>
|
||||
<input bitInput type="password" formControlName="password" />
|
||||
<ng-container *ngIf="!hasPassword">
|
||||
<button
|
||||
|
|
|
@ -53,6 +53,7 @@ export class SendOptionsComponent implements OnInit {
|
|||
@Input()
|
||||
originalSendView: SendView;
|
||||
disableHideEmail = false;
|
||||
passwordRemoved = false;
|
||||
sendOptionsForm = this.formBuilder.group({
|
||||
maxAccessCount: [null as number],
|
||||
accessCount: [null as number],
|
||||
|
@ -136,6 +137,8 @@ export class SendOptionsComponent implements OnInit {
|
|||
return false;
|
||||
}
|
||||
|
||||
this.passwordRemoved = true;
|
||||
|
||||
await this.sendApiService.removePassword(this.originalSendView.id);
|
||||
|
||||
this.toastService.showToast({
|
||||
|
|
Loading…
Reference in New Issue