You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
903 B
Vue
48 lines
903 B
Vue
<template>
|
|
<v-card flat>
|
|
<v-card-text>
|
|
<v-text-field
|
|
v-model="settings.weather.api"
|
|
label="i8n:OpenWeatherMap API key"
|
|
placeholder="###"
|
|
/>
|
|
|
|
<weather-find-location
|
|
:api="settings.weather.api"
|
|
:location.sync="settings.weather.location"
|
|
:lang="lang"
|
|
:unit="unit"
|
|
/>
|
|
</v-card-text>
|
|
</v-card>
|
|
</template>
|
|
|
|
<script>
|
|
import weatherFindLocation from '@/components/Weather/FindLocation'
|
|
|
|
export default {
|
|
components: {
|
|
weatherFindLocation,
|
|
},
|
|
props: {
|
|
settings: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
},
|
|
data: () => ({
|
|
}),
|
|
computed: {
|
|
lang () {
|
|
return this.settings.language || 'EN'
|
|
},
|
|
unit () {
|
|
return this.settings.language === 'EN' ? '' : 'metric'
|
|
},
|
|
},
|
|
methods: {
|
|
commit () {},
|
|
},
|
|
}
|
|
</script>
|