Skip to content

Commit

Permalink
widget-manager: ArmerButton color change when toggled
Browse files Browse the repository at this point in the history
  • Loading branch information
wandersonsousa authored and patrickelectric committed Jan 5, 2024
1 parent dc535e3 commit 83e744f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/mini-widgets/ArmerButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
: 'justify-start bg-slate-800/60 text-slate-400 left-[4%]'
"
>
<span class="inline-block font-extrabold align-middle">
<span
class="inline-block font-extrabold align-middle"
:class="vehicleStore.isArmed === undefined ? '' : vehicleStore.isArmed ? 'text-green-700' : 'text-red-700'"
>
{{ vehicleStore.isArmed === undefined ? '...' : vehicleStore.isArmed ? 'Armed' : 'Disarmed' }}
</span>
</div>
Expand Down

0 comments on commit 83e744f

Please sign in to comment.