Skip to content
Snippets Groups Projects
Commit cf2adc3b authored by Florent Poittevin's avatar Florent Poittevin
Browse files

style: display no data found on data table only when no current loading

parent c6de35cf
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@
class="wrapper"
>
<dlcm-shared-data-table *ngIf="(listAdaptedObs | async).length > 0;"
[isLoading]="(isLoadingObs | async) || (isLoadingOrgUnitObs | async)"
[columns]="columns"
[datas]="listAdaptedObs | async"
[skipInitialQuery]="true"
......
......@@ -4,6 +4,7 @@
[dlcmSpinner]="data.isLoading | async"
>
<dlcm-shared-data-table [columns]="columns"
[isLoading]="data.isLoading | async"
[datas]="data.statusHistory | async"
></dlcm-shared-data-table>
</div>
......
......@@ -128,7 +128,7 @@
</tr>
</ng-template>
</p-table>
<div *ngIf="isDatasPresent === false"
<div *ngIf="isLoading === false && isDatasPresent === false"
class="no-datas"
>
<mat-icon class="icon">sentiment_dissatisfied</mat-icon>
......
......@@ -56,6 +56,9 @@ export class SharedDataTablePresentational<T> extends SharedAbstractPresentation
@Input()
skipInitialQuery: boolean = false;
@Input()
isLoading: boolean = false;
private _queryParameters: QueryParameters;
@Input()
......
......@@ -29,6 +29,7 @@
[dlcmSpinner]="isLoadingObs | async"
>
<dlcm-shared-data-table [columns]="columns"
[isLoading]="isLoadingObs | async"
[datas]="listObs | async"
[queryParameters]="queryParametersObs | async"
(selectChange)="showDetail($event)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment