fix: adjust code to overcome the breaking changes (ionic 4 to 5)

Closes #70
This commit is contained in:
Jovan Krunić
2020-11-03 17:29:58 +01:00
parent 2e8d717607
commit f7790426cd
7 changed files with 23 additions and 21 deletions

View File

@@ -1,9 +1,6 @@
<ion-menu type="overlay" menuId="context" side="end">
<ion-menu type="overlay" menuId="context" contentId="data-list" side="end">
<ion-card-header>
<ion-toolbar>
<ion-buttons slot="right">
<ion-back-button></ion-back-button>
</ion-buttons>
<ion-title>{{'menu.context.title' | translate | titlecase}}</ion-title>
</ion-toolbar>
</ion-card-header>
@@ -42,10 +39,12 @@
*ngFor="let facet of !filterOption.compact ?
filterOption.options.slice(0, compactFilterOptionCount) : filterOption.options">
<ion-list-header class="h3">
{{(facet.onlyOnType ?
getTranslatedPropertyName(facet.field, facet.onlyOnType)
: (getTranslatedPropertyName(facet.field))) | titlecase}}
{{facet.onlyOnType? ' | ' + (getTranslatedType(facet.onlyOnType) | titlecase) : ''}}
<ion-label>
{{(facet.onlyOnType ?
getTranslatedPropertyName(facet.field, facet.onlyOnType)
: (getTranslatedPropertyName(facet.field))) | titlecase}}
{{facet.onlyOnType? ' | ' + (getTranslatedType(facet.onlyOnType) | titlecase) : ''}}
</ion-label>
</ion-list-header>
<div *ngIf="facet.buckets.length > 0">
<ion-item
@@ -77,4 +76,3 @@
</div>
</ion-content>
</ion-menu>
<ion-router-outlet main></ion-router-outlet>