fix loading state excluding other state during the loading (#1991)

This commit is contained in:
Eugenio Romano
2017-06-20 18:51:21 +01:00
committed by Eugenio Romano
parent 201741aeee
commit 0669575cb8

View File

@@ -29,6 +29,7 @@
</thead> </thead>
<tbody> <tbody>
<ng-container *ngIf="!loading">
<tr *ngFor="let row of data.getRows(); let idx = index" tabindex="0" <tr *ngFor="let row of data.getRows(); let idx = index" tabindex="0"
class="alfresco-datatable__row" class="alfresco-datatable__row"
[class.alfresco-datatable__row--selected]="row.isSelected" [class.alfresco-datatable__row--selected]="row.isSelected"
@@ -64,7 +65,8 @@
<div *ngIf="!col.template" class="cell-container"> <div *ngIf="!col.template" class="cell-container">
<ng-container [ngSwitch]="col.type"> <ng-container [ngSwitch]="col.type">
<div *ngSwitchCase="'image'" class="cell-value"> <div *ngSwitchCase="'image'" class="cell-value">
<i *ngIf="isIconValue(row, col)" class="material-icons icon-cell">{{asIconValue(row, col)}}</i> <i *ngIf="isIconValue(row, col)" class="material-icons icon-cell">{{asIconValue(row,
col)}}</i>
<img *ngIf="!isIconValue(row, col)" <img *ngIf="!isIconValue(row, col)"
class="image-cell" class="image-cell"
alt="{{ iconAltTextKey(data.getValue(row, col)) | translate }}" alt="{{ iconAltTextKey(data.getValue(row, col)) | translate }}"
@@ -125,6 +127,7 @@
</ng-template> </ng-template>
</td> </td>
</tr> </tr>
</ng-container>
<tr *ngIf="loading"> <tr *ngIf="loading">
<td class="mdl-data-table__cell--non-numeric adf-loading-content-container" <td class="mdl-data-table__cell--non-numeric adf-loading-content-container"
[attr.colspan]="1 + data.getColumns().length"> [attr.colspan]="1 + data.getColumns().length">