diff options
author | Julien Veyssier <eneiluj@posteo.net> | 2022-01-06 14:10:18 +0100 |
---|---|---|
committer | Julien Veyssier <eneiluj@posteo.net> | 2022-01-06 14:10:18 +0100 |
commit | e497b307448bdc3ef7528d0f3a87df5a63f01dd8 (patch) | |
tree | b8d53f0277bb3978795a43ec4bfbcb2ff5fcab2a /apps/weather_status/src | |
parent | 63a9bc2aacf829563ac74abe29d4edf6ff31b8b1 (diff) | |
download | nextcloud-server-e497b307448bdc3ef7528d0f3a87df5a63f01dd8.tar.gz nextcloud-server-e497b307448bdc3ef7528d0f3a87df5a63f01dd8.zip |
[weather widget] only display integer temperatures
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'apps/weather_status/src')
-rw-r--r-- | apps/weather_status/src/App.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/weather_status/src/App.vue b/apps/weather_status/src/App.vue index 26430e08b1b..600ebbc49ba 100644 --- a/apps/weather_status/src/App.vue +++ b/apps/weather_status/src/App.vue @@ -462,7 +462,7 @@ export default { }, getLocalizedTemperature(celcius) { return this.useFahrenheitLocale - ? ((celcius * (9 / 5)) + 32).toFixed(1) + ? (celcius * (9 / 5)) + 32 : celcius }, onAddRemoveFavoriteClick() { @@ -511,7 +511,7 @@ export default { getWeatherMessage(weatherCode, temperature, later = false) { return weatherCode && weatherCode in weatherOptions ? weatherOptions[weatherCode].text( - this.getLocalizedTemperature(temperature), + Math.round(this.getLocalizedTemperature(temperature)), this.temperatureUnit, later ) |