diff options
Diffstat (limited to 'apps/weather_status/src/App.vue')
-rw-r--r-- | apps/weather_status/src/App.vue | 10 |
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') }, }, } |