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

fix: click sur la métadonné pour consulter ses enfants

parent ec1e7aa8
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,!48Issue/problemes metadonnee,!41MAJ: compare to vitam-ui
......@@ -35,8 +35,8 @@
<span *ngIf="node.children.length && node.name !== rootElementName
&& isPartOfCollection(node) && shouldBeOnTab(node) && !isAttribute(node)"
(click)="updateMedataTable(node);$event.stopPropagation()">
<div [ngStyle]="{'margin-left': calculateNodePosition(node) + 'px' , 'width': '350px' }" (click)="updateMedataTable(node);$event.stopPropagation()">
<button *ngIf="isElementComplexAndHasChildren(node)"
<div [ngStyle]="{'margin-left': calculateNodePosition(node) + 'px' , 'width': '350px' }" (click)="showChildren(node);$event.stopPropagation()">
<button [id]="'showChild' + node.name" *ngIf="isElementComplexAndHasChildren(node)"
mat-icon-button matTreeNodeToggle
class="pastis-chevron-icon"
(click)="updateMedataTable(node);$event.stopPropagation()">
......
......@@ -733,6 +733,10 @@ export class FileTreeComponent implements OnDestroy {
}
return false;
}
showChildren(node: FileNode){
this.updateMedataTable(node);
document.getElementById("showChild"+ node.name).click();
}
ngOnDestroy(){
if(this.sedaLanguageSub != null){
......
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