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-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" />
|
<input bitInput type="password" formControlName="password" />
|
||||||
<ng-container *ngIf="!hasPassword">
|
<ng-container *ngIf="!hasPassword">
|
||||||
<button
|
<button
|
||||||
|
|
|
@ -53,6 +53,7 @@ export class SendOptionsComponent implements OnInit {
|
||||||
@Input()
|
@Input()
|
||||||
originalSendView: SendView;
|
originalSendView: SendView;
|
||||||
disableHideEmail = false;
|
disableHideEmail = false;
|
||||||
|
passwordRemoved = false;
|
||||||
sendOptionsForm = this.formBuilder.group({
|
sendOptionsForm = this.formBuilder.group({
|
||||||
maxAccessCount: [null as number],
|
maxAccessCount: [null as number],
|
||||||
accessCount: [null as number],
|
accessCount: [null as number],
|
||||||
|
@ -136,6 +137,8 @@ export class SendOptionsComponent implements OnInit {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.passwordRemoved = true;
|
||||||
|
|
||||||
await this.sendApiService.removePassword(this.originalSendView.id);
|
await this.sendApiService.removePassword(this.originalSendView.id);
|
||||||
|
|
||||||
this.toastService.showToast({
|
this.toastService.showToast({
|
||||||
|
|
Loading…
Reference in New Issue