Merge pull request #6171 from tsiegleauq/hide-generate-button

Hide pw generate button while editing a user
This commit is contained in:
Sean 2021-07-19 16:30:15 +02:00 committed by GitHub
commit d643028410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>