From bab7cc98535de34f948931a8da7a0907fa97cea7 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 6 Jun 2023 12:36:39 +0200 Subject: fix(weather_status): Always show all favorite locations Signed-off-by: Ferdinand Thiessen --- apps/weather_status/src/App.vue | 40 ++++++++++++++-------------------------- 1 file changed, 14 insertions(+), 26 deletions(-) (limited to 'apps') diff --git a/apps/weather_status/src/App.vue b/apps/weather_status/src/App.vue index a5844e2f3ed..ed4aed27ab5 100644 --- a/apps/weather_status/src/App.vue +++ b/apps/weather_status/src/App.vue @@ -64,21 +64,18 @@ @submit="onAddressSubmit"> {{ t('weather_status', 'Set custom address') }} - - {{ t('weather_status', 'Favorites') }} - - - - {{ favorite }} - + @@ -92,6 +89,7 @@ import IconStar from 'vue-material-design-icons/Star.vue' import IconStarOutline from 'vue-material-design-icons/StarOutline.vue' import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' +import NcActionCaption from '@nextcloud/vue/dist/Components/NcActionCaption.js' import NcActionInput from '@nextcloud/vue/dist/Components/NcActionInput.js' import NcActionLink from '@nextcloud/vue/dist/Components/NcActionLink.js' import NcActionSeparator from '@nextcloud/vue/dist/Components/NcActionSeparator.js' @@ -211,6 +209,7 @@ export default { IconStar, NcActions, NcActionButton, + NcActionCaption, NcActionInput, NcActionLink, NcActionSeparator, @@ -236,7 +235,6 @@ export default { forecasts: [], loop: null, favorites: [], - showFavorites: false, } }, computed: { @@ -309,16 +307,6 @@ export default { return f === this.address }) }, - toggleFavoritesIcon() { - return this.showFavorites - ? 'icon-triangle-s' - : 'icon-triangle-e' - }, - displayedFavorites() { - return this.showFavorites - ? this.favorites - : [] - }, }, mounted() { this.initWeatherStatus() -- cgit v1.2.3