filebrowser/frontend/src/components/settings/Themes.vue
2020-06-08 23:09:06 +08:00

19 lines
382 B
Vue

<template>
<select :value="theme" @change="change">
<option value="">{{ $t('settings.themes.light') }}</option>
<option value="dark">{{ $t('settings.themes.dark') }}</option>
</select>
</template>
<script>
export default {
name: 'Themes',
props: ['theme'],
methods: {
change(event) {
this.$emit('update:theme', event.target.value)
}
}
}
</script>