mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
fix(weatherstatus): make a difference between 'unknown weather code' and 'no weather info'
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
This commit is contained in:
parent
bfa1c7e9ce
commit
c96bde74ba
1 changed files with 7 additions and 3 deletions
|
|
@ -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')
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue