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

add button Ajouter ua dans deux parcours

parent e7523a8f
No related branches found
No related tags found
...@@ -37,7 +37,8 @@ ...@@ -37,7 +37,8 @@
[childrenListToExclude]="headerTabChildrenToExclude" [childrenListToExclude]="headerTabChildrenToExclude"
[shouldLoad]="isTabClicked(1)" [shouldLoad]="isTabClicked(1)"
[collectionName]="collectionNames[1]" [collectionName]="collectionNames[1]"
[puaMode]="puaMode"> [puaMode]="puaMode"
[activeTabIndex]="activeTabIndex">
</pastis-file-tree> </pastis-file-tree>
</ng-template> </ng-template>
...@@ -56,7 +57,8 @@ ...@@ -56,7 +57,8 @@
[childrenListToExclude]="rulesTabChildrenToExclude" [childrenListToExclude]="rulesTabChildrenToExclude"
[shouldLoad]="isTabClicked(2)" [shouldLoad]="isTabClicked(2)"
[collectionName]="collectionNames[2]" [collectionName]="collectionNames[2]"
[puaMode]="puaMode"> [puaMode]="puaMode"
[activeTabIndex]="activeTabIndex">
</pastis-file-tree> </pastis-file-tree>
</ng-template> </ng-template>
...@@ -74,7 +76,8 @@ ...@@ -74,7 +76,8 @@
[childrenListToExclude]="treeTabChildrenToExclude" [childrenListToExclude]="treeTabChildrenToExclude"
[shouldLoad]="isTabClicked(3)" [shouldLoad]="isTabClicked(3)"
[collectionName]="collectionNames[3]" [collectionName]="collectionNames[3]"
[puaMode]="puaMode"> [puaMode]="puaMode"
[activeTabIndex]="activeTabIndex">
</pastis-file-tree> </pastis-file-tree>
</ng-template> </ng-template>
</div> </div>
...@@ -92,7 +95,8 @@ ...@@ -92,7 +95,8 @@
[childrenListToExclude]="objectTabChildrenToExclude" [childrenListToExclude]="objectTabChildrenToExclude"
[shouldLoad]="isTabClicked(4)" [shouldLoad]="isTabClicked(4)"
[collectionName]="collectionNames[4]" [collectionName]="collectionNames[4]"
[puaMode]="puaMode"> [puaMode]="puaMode"
[activeTabIndex]="activeTabIndex">
</pastis-file-tree> </pastis-file-tree>
</ng-template> </ng-template>
......
...@@ -4,6 +4,11 @@ ...@@ -4,6 +4,11 @@
<!-- Nested tree node--> <!-- Nested tree node-->
<mat-nested-tree-node *matTreeNodeDef="let node;when:hasNestedChild"> <mat-nested-tree-node *matTreeNodeDef="let node;when:hasNestedChild">
<div *ngIf="node.name === rootElementName && ((activeTabIndex === 3 && !puaMode) || (activeTabIndex === 1 && puaMode)) " class="pastis-btn-container-add-ua">
<button class="btn primary" (click)= addArchiveUnit(node) >
AJOUTER UNE UA
</button>
</div>
<ng-container *ngIf="!isAttribute(node) && shouldBeOnTab(node) && node" > <ng-container *ngIf="!isAttribute(node) && shouldBeOnTab(node) && node" >
<mat-list-item <mat-list-item
(mouseover)="hover=node.children.length" (click)="updateMedataTable(node);nestedTreeControl.expand(node)" (mouseover)="hover=node.children.length" (click)="updateMedataTable(node);nestedTreeControl.expand(node)"
...@@ -46,7 +51,7 @@ ...@@ -46,7 +51,7 @@
tooltip="Ajouter une UA" tooltip="Ajouter une UA"
tooltip-class="pastis-tooltip-class"> tooltip-class="pastis-tooltip-class">
<!--Button plus--> <!--Button plus-->
<button class="pastis-btn-add-ua" (click)= "addArchiveUnit(node)"> <button class="pastis-btn-add-ua" *ngIf="!puaMode" (click)= "addArchiveUnit(node)">
<i class="vitamui-icon vitamui-icon-add" style="color: var(--vitamui-primary);"></i> <i class="vitamui-icon vitamui-icon-add" style="color: var(--vitamui-primary);"></i>
<span class="pastis-btn-add-ua-text">Ajouter une ua</span> <span class="pastis-btn-add-ua-text">Ajouter une ua</span>
</button> </button>
......
...@@ -207,3 +207,14 @@ ...@@ -207,3 +207,14 @@
min-width: 100%; min-width: 100%;
background-color: #F6F3FB; background-color: #F6F3FB;
} }
.pastis-btn-container-add-ua{
background-color: #F6F3FB;
height: 70px;
margin-left: 40px;
}
.primary {
@extend .primary;
background-color: var(--vitamui-primary) !important;
box-shadow: none !important;
}
...@@ -79,6 +79,8 @@ export class FileTreeComponent { ...@@ -79,6 +79,8 @@ export class FileTreeComponent {
collectionName: string collectionName: string
@Input() @Input()
puaMode: boolean; puaMode: boolean;
@Input()
activeTabIndex: number;
nodeToSend: FileNode; nodeToSend: FileNode;
data: FileNode; data: FileNode;
......
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