From f7790426cd2da4a6b33e2aa73783943f45b3de02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jovan=20Kruni=C4=87?= Date: Tue, 3 Nov 2020 17:29:58 +0100 Subject: [PATCH] fix: adjust code to overcome the breaking changes (ionic 4 to 5) Closes #70 --- src/app/modules/data/data.html | 2 +- src/app/modules/data/detail/data-detail.html | 4 ++-- src/app/modules/data/list/data-list-item.html | 2 +- src/app/modules/data/list/data-list.html | 2 +- src/app/modules/menu/context/context-menu.html | 16 +++++++--------- src/app/modules/menu/navigation/navigation.html | 14 +++++++++----- .../settings/page/settings-page.component.ts | 4 ++-- 7 files changed, 23 insertions(+), 21 deletions(-) diff --git a/src/app/modules/data/data.html b/src/app/modules/data/data.html index f79ff718..fef81512 100644 --- a/src/app/modules/data/data.html +++ b/src/app/modules/data/data.html @@ -13,6 +13,6 @@ - + diff --git a/src/app/modules/data/detail/data-detail.html b/src/app/modules/data/detail/data-detail.html index 8f4c0af8..ac8bdb0c 100644 --- a/src/app/modules/data/detail/data-detail.html +++ b/src/app/modules/data/detail/data-detail.html @@ -4,10 +4,10 @@ - {{'data.detail.TITLE' | translate}} + {{'data.detail.TITLE' | translate}} - + diff --git a/src/app/modules/data/list/data-list-item.html b/src/app/modules/data/list/data-list-item.html index a2d597a1..181b9efa 100644 --- a/src/app/modules/data/list/data-list-item.html +++ b/src/app/modules/data/list/data-list-item.html @@ -1,4 +1,4 @@ - + {{item.name}} diff --git a/src/app/modules/data/list/data-list.html b/src/app/modules/data/list/data-list.html index 22f87808..70721fc6 100644 --- a/src/app/modules/data/list/data-list.html +++ b/src/app/modules/data/list/data-list.html @@ -17,7 +17,7 @@ - + diff --git a/src/app/modules/menu/context/context-menu.html b/src/app/modules/menu/context/context-menu.html index c9373aeb..ae22de4e 100644 --- a/src/app/modules/menu/context/context-menu.html +++ b/src/app/modules/menu/context/context-menu.html @@ -1,9 +1,6 @@ - + - - - {{'menu.context.title' | translate | titlecase}} @@ -42,10 +39,12 @@ *ngFor="let facet of !filterOption.compact ? filterOption.options.slice(0, compactFilterOptionCount) : filterOption.options"> - {{(facet.onlyOnType ? - getTranslatedPropertyName(facet.field, facet.onlyOnType) - : (getTranslatedPropertyName(facet.field))) | titlecase}} - {{facet.onlyOnType? ' | ' + (getTranslatedType(facet.onlyOnType) | titlecase) : ''}} + + {{(facet.onlyOnType ? + getTranslatedPropertyName(facet.field, facet.onlyOnType) + : (getTranslatedPropertyName(facet.field))) | titlecase}} + {{facet.onlyOnType? ' | ' + (getTranslatedType(facet.onlyOnType) | titlecase) : ''}} +
- diff --git a/src/app/modules/menu/navigation/navigation.html b/src/app/modules/menu/navigation/navigation.html index 9246a587..6ddf834c 100644 --- a/src/app/modules/menu/navigation/navigation.html +++ b/src/app/modules/menu/navigation/navigation.html @@ -1,5 +1,5 @@ - - + + @@ -11,7 +11,11 @@ {{category.translations[language].name | titlecase}} + *ngIf="category.name !== ''"> + + {{category.translations[language].name | titlecase}} + + @@ -21,7 +25,7 @@ - + - + diff --git a/src/app/modules/settings/page/settings-page.component.ts b/src/app/modules/settings/page/settings-page.component.ts index 3bf484b6..74cf7c22 100644 --- a/src/app/modules/settings/page/settings-page.component.ts +++ b/src/app/modules/settings/page/settings-page.component.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018, 2019 StApps + * Copyright (C) 2018, 2019, 2020 StApps * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, version 3. @@ -80,7 +80,7 @@ export class SettingsPageComponent { */ private async presentSettingsResetToast() { const toast = await this.toastController.create({ - cssClass: 'text-center', + cssClass: 'ion-text-center', duration: 2000, message: this.translateService.instant('settings.resetToast.message'), });