29 lines
No EOL
752 B
Vue
29 lines
No EOL
752 B
Vue
<template>
|
|
<div>
|
|
<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>
|
|
|
|
</style> |