Skip to content

Commit

Permalink
prioritize cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiritin committed Feb 12, 2025
1 parent 396eb20 commit d536100
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ defineProps(['entry'])
<HourTime :time="new Date(entry.ends_at).getTime() + (entry.delay * 60 * 1000)"/>
</div>
</div>
<div v-else-if="entry.flags.find((e) => e === 'cancelled')" class="rounded">
<div class="font-mono p-2 text-2xl font-bold text-center w-full bg-black">
CANCELLED
</div>
</div>
<div v-if="isCurrentTimeBetween(entry.starts_at,entry.ends_at,(entry.delay ?? 0))">
<div
class="flex font-bold w-fit mt-2 text-2xl justify-between items-center align-middle gap-2 rounded-full ml-auto themeFontSecondary">
Expand All @@ -77,11 +82,6 @@ defineProps(['entry'])
<div class="bg-white h-full" :style="'width:'+returnStyleWidthInPercent(entry)+'%;'"></div>
</div>
</div>
<div v-else-if="entry.flags.find((e) => e === 'cancelled')" class="rounded">
<div class="font-mono p-2 text-2xl font-bold text-center w-full bg-black">
CANCELLED
</div>
</div>
<div v-else-if="entry.flags.find((e) => e === 'moved')" class="rounded">
<div class="font-mono p-2 text-2xl font-bold text-center w-full bg-yellow-600">
MOVED
Expand Down

0 comments on commit d536100

Please sign in to comment.