Skip to content

Commit

Permalink
resolves #69
Browse files Browse the repository at this point in the history
  • Loading branch information
kaggl committed Feb 21, 2024
1 parent 36a16a8 commit a84bd7f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions components/indicator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ defineProps<{

<template>
<div class="flex gap-1 rounded border p-2">
<div :class="status === 'red' && 'bg-red-500'" class="h-6 w-6 rounded-full bg-slate-300" />
<div :class="status === 'red' ? 'bg-red-500' : 'bg-slate-300'" class="h-6 w-6 rounded-full" />
<div
:class="status === 'yellow' && 'bg-yellow-500'"
class="h-6 w-6 rounded-full bg-slate-300"
:class="status === 'yellow' ? 'bg-yellow-500' : 'bg-slate-300'"
class="h-6 w-6 rounded-full"
/>
<div
:class="status === 'green' ? 'bg-green-500' : 'bg-slate-300'"
class="h-6 w-6 rounded-full"
/>
<div :class="status === 'green' && 'bg-green-500'" class="h-6 w-6 rounded-full bg-slate-300" />
</div>
</template>

0 comments on commit a84bd7f

Please sign in to comment.