Move getWeatherIcon(wmoCode) from utils to parent (Dashboard)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8a6a21d80c
commit
ae499b47d1
@ -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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user