fix: improve formatting and readability in ScheduleModal component
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m19s
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m19s
This commit is contained in:
@@ -54,8 +54,14 @@
|
|||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<span class="default-label">{{ hasDefaultDeadline ? formatDefaultTime : 'Anytime' }}</span>
|
<span class="default-label">{{
|
||||||
<button type="button" class="link-btn" @click="exceptions.set(idx, { ...defaultTime })">
|
hasDefaultDeadline ? formatDefaultTime : 'Anytime'
|
||||||
|
}}</span>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="link-btn"
|
||||||
|
@click="exceptions.set(idx, { ...defaultTime })"
|
||||||
|
>
|
||||||
Set different time
|
Set different time
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
@@ -247,7 +253,12 @@ const nextOccurrence = computed((): string | null => {
|
|||||||
today.setHours(0, 0, 0, 0)
|
today.setHours(0, 0, 0, 0)
|
||||||
|
|
||||||
const fmt = (dt: Date) =>
|
const fmt = (dt: Date) =>
|
||||||
dt.toLocaleDateString('en-US', { weekday: 'short', month: 'short', day: 'numeric', year: 'numeric' })
|
dt.toLocaleDateString('en-US', {
|
||||||
|
weekday: 'short',
|
||||||
|
month: 'short',
|
||||||
|
day: 'numeric',
|
||||||
|
year: 'numeric',
|
||||||
|
})
|
||||||
|
|
||||||
// Find the first hit date strictly after today
|
// Find the first hit date strictly after today
|
||||||
for (let i = 1; i <= 365; i++) {
|
for (let i = 1; i <= 365; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user