Show no results div if properties filter left no properties

This commit is contained in:
BoykoAlex
2020-01-16 19:17:37 -05:00
parent f391c1a8d2
commit d69f629984

View File

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