|
8 | 8 | <NcActions |
9 | 9 | class="weather-status-menu-item__subheader" |
10 | 10 | :aria-label="currentWeatherMessage" |
11 | | - :menu-name="currentWeatherMessage"> |
| 11 | + :menuName="currentWeatherMessage"> |
12 | 12 | <template #icon> |
13 | 13 | <NcLoadingIcon v-if="loading" /> |
14 | 14 | <img |
|
34 | 34 | v-if="gotWeather" |
35 | 35 | target="_blank" |
36 | 36 | :href="weatherLinkTarget" |
37 | | - :close-after-click="true"> |
| 37 | + :closeAfterClick="true"> |
38 | 38 | <template #icon> |
39 | 39 | <NcIconSvgWrapper |
40 | 40 | name="MapMarker" |
|
57 | 57 | </NcActionButton> |
58 | 58 | <NcActionSeparator v-if="address && !errorMessage" /> |
59 | 59 | <NcActionButton |
60 | | - :close-after-click="true" |
| 60 | + :closeAfterClick="true" |
61 | 61 | @click="onBrowserLocationClick"> |
62 | 62 | <template #icon> |
63 | 63 | <NcIconSvgWrapper |
|
73 | 73 | :disabled="false" |
74 | 74 | icon="icon-rename" |
75 | 75 | type="text" |
76 | | - model-value="" |
| 76 | + modelValue="" |
77 | 77 | @submit="onAddressSubmit" /> |
78 | 78 | <template v-if="favorites.length > 0"> |
79 | 79 | <NcActionCaption :name="t('weather_status', 'Favorites')" /> |
@@ -102,7 +102,6 @@ import starOutlineSvg from '@mdi/svg/svg/star-outline.svg?raw' |
102 | 102 | import starSvg from '@mdi/svg/svg/star.svg?raw' |
103 | 103 | import { showError } from '@nextcloud/dialogs' |
104 | 104 | import { getLocale } from '@nextcloud/l10n' |
105 | | -import moment from '@nextcloud/moment' |
106 | 105 | import { imagePath } from '@nextcloud/router' |
107 | 106 | import NcActionButton from '@nextcloud/vue/components/NcActionButton' |
108 | 107 | import NcActionCaption from '@nextcloud/vue/components/NcActionCaption' |
@@ -865,10 +864,6 @@ export default { |
865 | 864 | } |
866 | 865 | }, |
867 | 866 |
|
868 | | - formatTime(time) { |
869 | | - return moment(time).format('LT') |
870 | | - }, |
871 | | -
|
872 | 867 | getTemperature(forecasts, offset = 0) { |
873 | 868 | return forecasts.length > offset ? forecasts[offset].data.instant.details.air_temperature : '' |
874 | 869 | }, |
|
0 commit comments