Skip to content
Snippets Groups Projects
Commit 25b271c2 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #23979 TIME 0:15 disable button after saving

parent 5a4ced20
No related branches found
No related tags found
No related merge requests found
......@@ -148,7 +148,8 @@
<ion-icon slot="bottom" name="ribbon-sharp"></ion-icon>
{{'lang.download' | translate}}
</ion-item-option>
<ion-item-option *ngIf="element.status !== 'HARD_DEL'" color="primary" (click)="openActions(element)">
<ion-item-option *ngIf="element.status !== 'HARD_DEL'" color="primary"
[disabled]="!isValidPrivilege()" (click)="openActions(element)">
<ion-icon slot="bottom" name="settings-sharp"></ion-icon>
{{'lang.actions' | translate}}
</ion-item-option>
......
......@@ -594,4 +594,9 @@ export class SearchComponent implements OnInit {
}
return '';
}
isValidPrivilege(): boolean {
const privileges: string [] = this.authService.user.appPrivileges?.map((item: any) => item.id);
return privileges.indexOf('indexation') > -1 && privileges.indexOf('manage_documents') > -1;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment