Skip to content

Commit

Permalink
Merge pull request #12158 from PaulSchult/master
Browse files Browse the repository at this point in the history
fix #12157 only show emptyMessage if dataView is not loading
  • Loading branch information
cetincakiroglu committed Dec 2, 2022
2 parents 5c4e9e5 + 1a2ae47 commit 2a479aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/dataview/dataview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import { Subscription } from 'rxjs';
<ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="paginator ? (filteredValue || value | slice: (lazy ? 0 : first):(lazy ? 0 : first) + rows) : filteredValue || value" [ngForTrackBy]="trackBy">
<ng-container *ngTemplateOutlet="itemTemplate; context: { $implicit: rowData, rowIndex: rowIndex }"></ng-container>
</ng-template>
<div *ngIf="isEmpty()" class="p-col col">
<div *ngIf="isEmpty() && !loading" class="p-col col">
<div class="p-dataview-emptymessage">
<ng-container *ngIf="!emptyMessageTemplate; else emptyFilter">
{{ emptyMessageLabel }}
Expand Down

0 comments on commit 2a479aa

Please sign in to comment.