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
884 B
Vue

<template>
<v-card flat>
<v-card-text>
<v-text-field
label="i8n:OpenWeatherMap API key"
v-model="settings.weather.api"
placeholder="###"
></v-text-field>
<weather-find-location
:api="settings.weather.api"
:location.sync="settings.weather.location"
:lang="lang"
:unit="unit"
></weather-find-location>
</v-card-text>
</v-card>
</template>
<script>
import weatherFindLocation from "@/components/WeatherFindLocation";
export default {
props: {
settings: {
type: Object,
required: true
}
},
components: {
weatherFindLocation
},
data: () => ({
}),
computed: {
lang() {
return this.settings.language || "EN";
},
unit() {
return this.settings.language === "EN" ? "" : "metric";
}
},
methods: {
commit() {}
}
};
</script>