</div>
</ng-container>
<ng-container *ngIf="!dataSource.requestingData">
- <div class="col-lg-12 text-center alert font-italic font-weight-bold">
+ <div class="col-lg-12 text-center alert alert-danger font-italic font-weight-bold" *ngIf="dataSource.retrievalError">
+ <span i18n>Error Retrieving Results</span>
+ </div>
+ <div class="col-lg-12 text-center alert font-italic font-weight-bold" *ngIf="!dataSource.retrievalError">
<span i18n>Nothing to Display</span>
</div>
</ng-container>
filters: Object;
allRowsRetrieved: boolean;
requestingData: boolean;
+ retrievalError: boolean;
getRows: (pager: Pager, sort: any[]) => Observable<any>;
constructor() {
// If we have to call out for data, set inFetch
this.requestingData = true;
+ this.retrievalError = false;
return new Promise((resolve, reject) => {
let idx = pager.offset;
row => {
this.data[idx++] = row;
this.requestingData = false;
+ this.retrievalError = false;
},
err => {
console.error(`grid getRows() error ${err}`);
+ this.requestingData = false;
+ this.retrievalError = true;
reject(err);
},
() => {
this.checkAllRetrieved(pager, idx);
this.requestingData = false;
+ this.retrievalError = false;
resolve();
}
);