remove edit option from finalized description-templates on listing

This commit is contained in:
Sofia Papacharalampous 2024-05-20 11:50:41 +03:00
parent a6b04e9ce5
commit 1f86b2ef9f
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@
<mat-icon>more_horiz</mat-icon>
</button>
<mat-menu #actionsMenu="matMenu">
<button mat-menu-item [routerLink]="['/description-templates/', row.id]">
<button *ngIf="row.status !== descriptionTemplateStatuses.Finalized" mat-menu-item [routerLink]="['/description-templates/', row.id]">
<mat-icon>edit</mat-icon>{{'DESCRIPTION-TEMPLATE-LISTING.ACTIONS.EDIT' | translate}}
</button>
<button *ngIf="row.belongsToCurrentTenant != false" mat-menu-item [routerLink]="['/description-templates/new-version/', row.id]">