fix: PR complaints
This commit is contained in:
parent
195322f3b0
commit
885fc5f906
2 changed files with 3 additions and 3 deletions
|
@ -47,7 +47,7 @@
|
||||||
<span v-if="getDayDifference(date, currentDate) === 1">Yesterday at</span>
|
<span v-if="getDayDifference(date, currentDate) === 1">Yesterday at</span>
|
||||||
<span v-else-if="getDayDifference(date, currentDate) > 1 ">{{ date.toLocaleDateString(undefined) }},</span>
|
<span v-else-if="getDayDifference(date, currentDate) > 1 ">{{ date.toLocaleDateString(undefined) }},</span>
|
||||||
|
|
||||||
{{ date.toLocaleTimeString(undefined, { hour12: props.format=="12", timeStyle: "short" }) }}
|
{{ date.toLocaleTimeString(undefined, { hour12: props.format == "12", timeStyle: "short" }) }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="message-text" v-html="sanitized" tabindex="0"></div>
|
<div class="message-text" v-html="sanitized" tabindex="0"></div>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="radio-buttons-container" ref="radioButtonsContainer">
|
<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-radio"></span>
|
||||||
<span class="radio-button-text">{{ textStrings[index] }}</span>
|
<span class="radio-button-text">{{ textStrings[index] }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,7 +19,7 @@ const props = defineProps<{
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
// makes an array from 0 to buttonCount - 1
|
// 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)
|
||||||
|
|
||||||
// select default selected button
|
// select default selected button
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue