cannot update a buildin role: disable update button if role is build_in

This commit is contained in:
sylvain121 2023-11-06 13:52:49 +01:00
parent 349260d807
commit be6da1d2e1

View File

@ -32,7 +32,7 @@
</div>
<div mat-dialog-actions class="button-div">
<button mat-button (click)="onUpdate()" tabindex="2" mat-raised-button color="primary"
[disabled]="!editRoleForm.valid">
[disabled]="!editRoleForm.valid || ($role | async)?.is_builtin">
Update Role
</button>
</div>