Hide pw generate button while editing a user

This commit is contained in:
Sean 2021-07-19 15:54:37 +02:00
parent f86f8ec9b4
commit 7022ab8cec
1 changed files with 1 additions and 8 deletions

View File

@ -195,14 +195,7 @@
formControlName="default_password"
/>
<mat-hint align="end">Generate</mat-hint>
<button
type="button"
mat-button
matSuffix
mat-icon-button
[disabled]="!newUser"
(click)="generatePassword()"
>
<button *ngIf="newUser" type="button" mat-button matSuffix mat-icon-button (click)="generatePassword()">
<mat-icon>sync_problem</mat-icon>
</button>
</mat-form-field>