Skip to content
Snippets Groups Projects
Commit e8860c8c authored by naji's avatar naji
Browse files

fix: profile type value

parent 3bd0831d
No related branches found
No related tags found
6 merge requests!58compare branch,!54Comparaison de merge vers vitam-ui,!53Comparaison de merge vers vitam-ui,!52Voir difference entre les deux verion,!43KDE - 22/09/2021 - Dupliquer Metadonnee seulement si PA,!41MAJ: compare to vitam-ui
......@@ -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;
......
......@@ -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();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment