Show no results div if properties filter left no properties

This commit is contained in:
BoykoAlex
2020-01-16 20:14:12 -05:00
parent d69f629984
commit 810f72ba05

View File

@@ -1,7 +1,12 @@
<div *ngIf="propertiesGroupModel && !propertiesGroupModel.isLoading" class="properties-group-container" [formGroup]="form">
<div *ngIf="propertiesGroupModel.getControlsModels().length > 0 && controlModelsToDisplay.length === 0; else propertiesList">No results found.</div>
<div *ngIf="propertiesGroupModel && !propertiesGroupModel.isLoading" class="properties-group-container"
[formGroup]="form">
<div
*ngIf="propertiesGroupModel.getControlsModels().length > 0 && controlModelsToDisplay.length === 0; else propertiesList"
class="no-matches-label">No results found.
</div>
</div>
<ng-template #propertiesList>
<df-property *ngFor="let model of controlModelsToDisplay" [model]="model" [form]="form" class="property-row"></df-property>
<df-property *ngFor="let model of controlModelsToDisplay" [model]="model" [form]="form"
class="property-row"></df-property>
</ng-template>