diff --git a/ui/ui-frontend/projects/pastis/src/app/profile/edit-profile/file-tree-metadata/file-tree-metadata.component.html b/ui/ui-frontend/projects/pastis/src/app/profile/edit-profile/file-tree-metadata/file-tree-metadata.component.html index 65172354a2c9678a550477db8d954f8c3360703b..f2be850a295b49ee004d90d8902f9b0b266db6bf 100644 --- a/ui/ui-frontend/projects/pastis/src/app/profile/edit-profile/file-tree-metadata/file-tree-metadata.component.html +++ b/ui/ui-frontend/projects/pastis/src/app/profile/edit-profile/file-tree-metadata/file-tree-metadata.component.html @@ -174,15 +174,15 @@ <mat-menu #menu="matMenu" [overlapTrigger]="false" class="pastis-menu-item-vitam"> <!-- Dupliquer--> - <mat-divider *ngIf="isDuplicated(element.nomDuChamp)" style="border-top-color:#E0E0E0;"> + <mat-divider *ngIf="isDuplicated(element.nomDuChamp) && this.profileService.profileMode==='PA'" style="border-top-color:#E0E0E0;"> </mat-divider> - <button *ngIf="isDuplicated(element.nomDuChamp)" mat-menu-item (click)="onDuplicateNode(element.id)"> + <button *ngIf="isDuplicated(element.nomDuChamp) && this.profileService.profileMode==='PA'" mat-menu-item (click)="onDuplicateNode(element.id)"> <mat-icon style="color:#757575">filter_none</mat-icon> <span class="text normal">{{'PROFILE.EDIT_PROFILE.FILE_TREE_METADATA.DUPLIQUER' | translate}}</span> </button> <!-- @Attributs--> - <mat-divider *ngIf="hasAttributes(element.nomDuChamp)" style="border-top-color:#E0E0E0;"></mat-divider> - <button *ngIf="hasAttributes(element.nomDuChamp);" (click)="onEditAttributesClick(element.id)" + <mat-divider *ngIf="hasAttributes(element.nomDuChamp) && this.profileService.profileMode==='PA'" style="border-top-color:#E0E0E0;"></mat-divider> + <button *ngIf="hasAttributes(element.nomDuChamp) && this.profileService.profileMode==='PA'" (click)="onEditAttributesClick(element.id)" mat-menu-item> <i class="vitamui-icon vitamui-icon-alternate_email_black_24dp" style="margin-right: 16px; vertical-align: middle;