show New password after removing a password (#11697)

This commit is contained in:
Jordan Aasen 2024-10-25 04:33:04 -07:00 committed by GitHub
parent 619618e6f3
commit adabc59c03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

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

View File

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