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 f54aaa0c74f27ab8db96db6772e652330317a3ae..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) && this.profileType==='PA'" 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) && this.profileType==='PA'" 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) && this.profileType==='PA'" style="border-top-color:#E0E0E0;"></mat-divider> - <button *ngIf="hasAttributes(element.nomDuChamp) && this.profileType==='PA'" (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; diff --git a/ui/ui-frontend/projects/pastis/src/app/profile/edit-profile/file-tree-metadata/file-tree-metadata.component.ts b/ui/ui-frontend/projects/pastis/src/app/profile/edit-profile/file-tree-metadata/file-tree-metadata.component.ts index f266b0bfe9cec19b4e5d2070d6fc9fe8cfe277f3..2768a3673b8563167d405fc7458bdd6f80ba3137 100644 --- a/ui/ui-frontend/projects/pastis/src/app/profile/edit-profile/file-tree-metadata/file-tree-metadata.component.ts +++ b/ui/ui-frontend/projects/pastis/src/app/profile/edit-profile/file-tree-metadata/file-tree-metadata.component.ts @@ -83,8 +83,6 @@ function constantToTranslate() { export class FileTreeMetadataComponent { - profileType : string; - valueOrData = Object.values(ValueOrDataConstants); dataType = Object.values(DataTypeConstants); cardinalityList: string[]; @@ -198,8 +196,6 @@ export class FileTreeMetadataComponent { ngOnInit() { - this.profileType = this.profileService.profileMode; - if(!this.isStandalone){ constantToTranslate.call(this); this.translatedOnChange();