Commit 7377293e authored by Alex ORLUC's avatar Alex ORLUC

add expanded input

parent b0af30f3
......@@ -7,7 +7,7 @@
</div>
<ng-container *ngFor="let role of availableRoles">
<mat-expansion-panel *ngIf="diffList[role.id].items.length > 0" class="diffusionList"
[expanded]="role.id === 'dest' || this.adminMode">
[expanded]="role.id === 'dest' || this.adminMode || expanded">
<mat-expansion-panel-header>
<mat-panel-title>
{{role.label}} <ng-container *ngIf="role.id !== 'dest'">({{diffList[role.id].items.length}})
......
......@@ -57,6 +57,11 @@ export class DiffusionsListComponent implements OnInit {
@Input('allowedEntities') allowedEntities: number[];
/**
* Expand all roles
*/
@Input('expanded') expanded: boolean = false;
/**
* To load privilege of current list management
* @param indexation
* @param details
......
......@@ -80,7 +80,7 @@
[resId]="currentResourceInformations.resId">
</app-notes-list>
<app-diffusions-list *ngIf="currentTool === 'diffusionList'" #appDiffusionsList [adminMode]="false"
[resId]="currentResourceInformations.resId">
[resId]="currentResourceInformations.resId" [expanded]="true">
</app-diffusions-list>
<app-visa-workflow *ngIf="currentTool === 'visa'" #appVisaWorkflow
[resId]="currentResourceInformations.resId"></app-visa-workflow>
......
Markdown is supported
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