Skip to content

Commit

Permalink
Custom card list screen : show response buttons and checkboxes only w…
Browse files Browse the repository at this point in the history
…hen all cards have been loaded (#7998)

Signed-off-by: vlo-rte <[email protected]>
  • Loading branch information
vlo-rte committed Feb 27, 2025
1 parent 72b7b8d commit 9299f88
Showing 1 changed file with 22 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,25 @@ <h1>Custom Screen {{id}} does not exist</h1>
margin-right: 5%;
">
<ag-grid-angular
*ngIf="loadingInProgress; else rowSelectionEnabled"
[rowData]="rowData$ | async"
[gridOptions]="gridOptions"
style="overflow-y: auto; max-height: calc(100vh - 350px)"
[rowSelection]="rowSelection"
(gridReady)="onGridReady($event)"
(cellClicked)="selectCard($event)"
class="ag-theme-opfab">
</ag-grid-angular>
<ng-template #rowSelectionEnabled>
<ag-grid-angular
[rowData]="rowData$ | async"
[gridOptions]="gridOptions"
style="overflow-y: auto; max-height: calc(100vh - 350px)"
[rowSelection]="rowSelection"
(gridReady)="onGridReady($event)"
(cellClicked)="selectCard($event)"
class="ag-theme-opfab">
</ag-grid-angular>
</ng-template>

<div *ngIf="gridApi" class="opfab-pagination" style="padding-bottom: 5px">
<div style="width: 200px; margin-top: 15px; flex-shrink: 0">
Expand Down Expand Up @@ -152,14 +163,16 @@ <h1>Custom Screen {{id}} does not exist</h1>
[rotate]="true">
</ngb-pagination>
</div>
<div *ngFor="let responseButton of responseButtons" class="opfab-custom-screen-response-btn">
<button
id="opfab-card-details-btn-unack"
class="opfab-btn"
(click)="clickOnResponseButton(responseButton.id)">
{{ responseButton.label }}
</button>
</div>
<ng-container *ngIf="!loadingInProgress">
<div *ngFor="let responseButton of responseButtons" class="opfab-custom-screen-response-btn">
<button
id="opfab-card-details-btn-unack"
class="opfab-btn"
(click)="clickOnResponseButton(responseButton.id)">
{{ responseButton.label }}
</button>
</div>
</ng-container>

<div class="opfab-custom-card-list-export-div">
<div
Expand Down

0 comments on commit 9299f88

Please sign in to comment.