Add support for 12 and 24 hour time formats (and add radio buttons) #33

Merged
twig merged 8 commits from time-format into main 2025-07-12 20:48:36 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 885fc5f906 - Show all commits

View file

@ -1,6 +1,6 @@
<template>
<div class="radio-buttons-container" ref="radioButtonsContainer">
<div v-for="index in incidies" :key="index" class="radio-button" @click="onClick(index)">
<div v-for="index in indices" :key="index" class="radio-button" @click="onClick(index)">
<span class="radio-button-radio"></span>
<span class="radio-button-text">{{ textStrings[index] }}</span>
</div>
@ -19,7 +19,7 @@ const props = defineProps<{
}>();
// makes an array from 0 to buttonCount - 1
const incidies = Array.from({ length: props.buttonCount }, (_, i) => i)
const indices = Array.from({ length: props.buttonCount }, (_, i) => i)
twig marked this conversation as resolved Outdated
`indices`* https://c.tenor.com/7pXIzb8f2rUAAAAd/tenor.gif
// select default selected button
onMounted(async () => {