diff --git a/src/frontend/app/diffusions/diffusions-list.component.html b/src/frontend/app/diffusions/diffusions-list.component.html index cc1bdcdc50e01799c930b437f2ec0b1ae8df587c..aa5a7ad3afca4d7d84da67334155e06a4af083bb 100644 --- a/src/frontend/app/diffusions/diffusions-list.component.html +++ b/src/frontend/app/diffusions/diffusions-list.component.html @@ -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}}) diff --git a/src/frontend/app/diffusions/diffusions-list.component.ts b/src/frontend/app/diffusions/diffusions-list.component.ts index 24df3fa4f89537f34d3b7f0dc1662200d2169bf9..354b44be8e4bcee7f8fe1e2815e66376812e90d8 100644 --- a/src/frontend/app/diffusions/diffusions-list.component.ts +++ b/src/frontend/app/diffusions/diffusions-list.component.ts @@ -56,6 +56,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 diff --git a/src/frontend/app/process/process.component.html b/src/frontend/app/process/process.component.html index b4ee6441c2d0c534939d00816343756c04fbf4e4..073893e782cd02aeaa8564f3898e2f6c235484e3 100644 --- a/src/frontend/app/process/process.component.html +++ b/src/frontend/app/process/process.component.html @@ -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>