Move getWeatherIcon(wmoCode) from utils to parent (Dashboard)
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Argiris Deligiannidis 2024-04-15 09:05:35 +03:00
parent 8a6a21d80c
commit ae499b47d1

View File

@ -14,9 +14,6 @@ export default defineNuxtComponent({
type: Number, type: Number,
}, },
}, },
data: () => ({
weatherIcons: utils.weatherIcons,
}),
methods: { methods: {
getDay(date) { getDay(date) {
return utils.getDay(date); return utils.getDay(date);
@ -25,7 +22,7 @@ export default defineNuxtComponent({
this.$emit('close-modal'); this.$emit('close-modal');
}, },
getWeatherIcon(wmoCode) { getWeatherIcon(wmoCode) {
return utils.getWeatherIcon(wmoCode); return this.$parent.getWeatherIcon(wmoCode);
}, },
}, },
name: 'Slideover Details', name: 'Slideover Details',