aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJulien Veyssier <julien-nc@posteo.net>2024-09-25 12:23:04 +0200
committerJulien Veyssier <julien-nc@posteo.net>2024-09-25 17:24:17 +0200
commitc96bde74ba55b3ca0063a4ae1da0f9a6e0879efc (patch)
treef7c0ae2b2951ef0e61a0e035ed6396eca5c4dea2 /apps
parentbfa1c7e9cef424ae597a3580c2ce21914b389dde (diff)
downloadnextcloud-server-c96bde74ba55b3ca0063a4ae1da0f9a6e0879efc.tar.gz
nextcloud-server-c96bde74ba55b3ca0063a4ae1da0f9a6e0879efc.zip
fix(weatherstatus): make a difference between 'unknown weather code' and 'no weather info'
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Diffstat (limited to 'apps')
-rw-r--r--apps/weather_status/src/App.vue10
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/weather_status/src/App.vue b/apps/weather_status/src/App.vue
index 59be98e12fb..95f55b844f5 100644
--- a/apps/weather_status/src/App.vue
+++ b/apps/weather_status/src/App.vue
@@ -293,15 +293,19 @@ export default {
return t('weather_status', 'Loading weather')
} else if (this.errorMessage) {
return this.errorMessage
- } else {
+ } else if (this.gotWeather) {
return this.getWeatherMessage(this.weatherCode, this.temperature)
+ } else {
+ return t('weather_status', 'Set location for weather')
}
},
forecastMessage() {
if (this.loading) {
return t('weather_status', 'Loading weather')
- } else {
+ } else if (this.gotWeather) {
return this.getWeatherMessage(this.futureWeatherCode, this.futureTemperature, true)
+ } else {
+ return t('weather_status', 'Set location for weather')
}
},
weatherLinkTarget() {
@@ -535,7 +539,7 @@ export default {
this.temperatureUnit,
later,
)
- : t('weather_status', 'Set location for weather')
+ : t('weather_status', 'Unknown weather code')
},
},
}