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 @@ ...@@ -31,6 +31,7 @@
class="wrapper" class="wrapper"
> >
<dlcm-shared-data-table *ngIf="(listAdaptedObs | async).length > 0;" <dlcm-shared-data-table *ngIf="(listAdaptedObs | async).length > 0;"
[isLoading]="(isLoadingObs | async) || (isLoadingOrgUnitObs | async)"
[columns]="columns" [columns]="columns"
[datas]="listAdaptedObs | async" [datas]="listAdaptedObs | async"
[skipInitialQuery]="true" [skipInitialQuery]="true"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
[dlcmSpinner]="data.isLoading | async" [dlcmSpinner]="data.isLoading | async"
> >
<dlcm-shared-data-table [columns]="columns" <dlcm-shared-data-table [columns]="columns"
[isLoading]="data.isLoading | async"
[datas]="data.statusHistory | async" [datas]="data.statusHistory | async"
></dlcm-shared-data-table> ></dlcm-shared-data-table>
</div> </div>
......
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
</tr> </tr>
</ng-template> </ng-template>
</p-table> </p-table>
<div *ngIf="isDatasPresent === false" <div *ngIf="isLoading === false && isDatasPresent === false"
class="no-datas" class="no-datas"
> >
<mat-icon class="icon">sentiment_dissatisfied</mat-icon> <mat-icon class="icon">sentiment_dissatisfied</mat-icon>
......
...@@ -56,6 +56,9 @@ export class SharedDataTablePresentational<T> extends SharedAbstractPresentation ...@@ -56,6 +56,9 @@ export class SharedDataTablePresentational<T> extends SharedAbstractPresentation
@Input() @Input()
skipInitialQuery: boolean = false; skipInitialQuery: boolean = false;
@Input()
isLoading: boolean = false;
private _queryParameters: QueryParameters; private _queryParameters: QueryParameters;
@Input() @Input()
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
[dlcmSpinner]="isLoadingObs | async" [dlcmSpinner]="isLoadingObs | async"
> >
<dlcm-shared-data-table [columns]="columns" <dlcm-shared-data-table [columns]="columns"
[isLoading]="isLoadingObs | async"
[datas]="listObs | async" [datas]="listObs | async"
[queryParameters]="queryParametersObs | async" [queryParameters]="queryParametersObs | async"
(selectChange)="showDetail($event)" (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