mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACA-1959] [ACA-1960] Library metadata form action buttons state (#766)
* hide Edit button if no permission * disable Update button if form is pristine
This commit is contained in:
committed by
Denys Vuika
parent
fd692b6b8c
commit
8d68ada078
+2
-2
@@ -73,7 +73,7 @@
|
||||
</div>
|
||||
</mat-card-content>
|
||||
|
||||
<mat-card-actions align="end" *ngIf="!edit">
|
||||
<mat-card-actions align="end" *ngIf="!edit && canUpdateLibrary">
|
||||
<button mat-button color="primary" (click)="toggleEdit()">
|
||||
{{ 'LIBRARY.DIALOG.EDIT' | translate }}
|
||||
</button>
|
||||
@@ -117,7 +117,7 @@
|
||||
<button mat-button color="secondary" (click)="cancel()">
|
||||
{{ 'LIBRARY.DIALOG.CANCEL' | translate }}
|
||||
</button>
|
||||
<button mat-button color="primary" [disabled]="form.invalid" (click)="update()">
|
||||
<button mat-button color="primary" [disabled]="form.invalid || form.pristine" (click)="update()">
|
||||
{{ 'LIBRARY.DIALOG.UPDATE' | translate }}
|
||||
</button>
|
||||
</mat-card-actions>
|
||||
|
||||
Reference in New Issue
Block a user