Fixes disappearing search box on dashboard if no results

This commit is contained in:
apapachristou 2020-10-30 13:31:28 +02:00
parent df8af6e6cd
commit d27f8301c6
4 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@
</mat-form-field>
<!-- End of Sort by -->
<!-- Search Filter-->
<mat-form-field *ngIf="datasetDrafts && datasetDrafts.length > 0" appearance="outline" class="search-form ml-auto col-auto pr-0" floatLabel="never">
<mat-form-field *ngIf="datasetDrafts" appearance="outline" class="search-form ml-auto col-auto pr-0" floatLabel="never">
<mat-icon matSuffix>search</mat-icon>
<input matInput placeholder="{{'CRITERIA.DATA-SETS.DRAFT-LIKE'| translate}}" name="likeCriteria" [formControl]="formGroup.get('like')">
<mat-error *ngIf="formGroup.get('like').hasError('backendError')">{{formGroup.get('like').getError('backendError').message}}</mat-error>

View File

@ -16,7 +16,7 @@
</mat-form-field>
<!-- End of Sort by -->
<!-- Search Filter-->
<mat-form-field *ngIf="allRecentActivities && allRecentActivities.length > 0" appearance="outline" class="search-form ml-auto col-auto" floatLabel="never">
<mat-form-field appearance="outline" class="search-form ml-auto col-auto pr-0" floatLabel="never">
<mat-icon matSuffix>search</mat-icon>
<input matInput placeholder="{{'CRITERIA.LIKE'| translate}}" name="likeCriteria" [formControl]="formGroup.get('like')">
<mat-error *ngIf="formGroup.get('like').hasError('backendError')">{{formGroup.get('like').getError('backendError').message}}</mat-error>

View File

@ -13,7 +13,7 @@
</mat-form-field>
<!-- End of Sort by -->
<!-- Search Filter-->
<mat-form-field *ngIf="datasetActivities && datasetActivities.length > 0" appearance="outline" class="search-form ml-auto col-auto pr-0" floatLabel="never">
<mat-form-field appearance="outline" class="search-form ml-auto col-auto pr-0" floatLabel="never">
<mat-icon matSuffix>search</mat-icon>
<input matInput placeholder="{{'CRITERIA.DATA-SETS.LIKE'| translate}}" name="likeCriteria" [formControl]="formGroup.get('like')">
<mat-error *ngIf="formGroup.get('like').hasError('backendError')">{{formGroup.get('like').getError('backendError').message}}</mat-error>

View File

@ -13,7 +13,7 @@
</mat-form-field>
<!-- End of Sort by -->
<!-- Search Filter-->
<mat-form-field *ngIf="dmpActivities && dmpActivities.length > 0" appearance="outline" class="search-form ml-auto col-auto pr-0" floatLabel="never">
<mat-form-field appearance="outline" class="search-form ml-auto col-auto pr-0" floatLabel="never">
<mat-icon matSuffix>search</mat-icon>
<input matInput placeholder="{{'CRITERIA.DMP.LIKE'| translate}}" name="likeCriteria" [formControl]="formGroup.get('like')">
<mat-error *ngIf="formGroup.get('like').hasError('backendError')">{{formGroup.get('like').getError('backendError').message}}</mat-error>