style: move time format to language
This commit is contained in:
parent
395dd6cf9b
commit
b7eb404d0f
4 changed files with 22 additions and 35 deletions
|
@ -1,10 +1,27 @@
|
|||
<template>
|
||||
<div>
|
||||
<h1>Language (TBA)</h1>
|
||||
<h1>Language</h1>
|
||||
|
||||
<p class="subtitle">TIME FORMAT</p>
|
||||
<div class="icons">
|
||||
<RadioButtons
|
||||
:button-count="3"
|
||||
:text-strings="timeFormatTextStrings"
|
||||
:default-button-index="timeFormatSelectedIndex"
|
||||
:callback="(index: number) => {settingSave('timeFormat', timeFormatTextStrings[index])}"
|
||||
/>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import RadioButtons from '~/components/UserInterface/RadioButtons.vue';
|
||||
import type { TimeFormat } from '~/types/settings';
|
||||
|
||||
const timeFormatTextStrings: TimeFormat[] = ["Auto", "4:18 PM", "16:18"]
|
||||
const timeFormatSelectedIndex = timeFormatTextStrings.indexOf(settingsLoad().timeFormat ?? "Auto")
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue