Skip to content

Commit 72d67a1

Browse files
committed
Only show power button when powered on
1 parent 935daf1 commit 72d67a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/PlayerCard.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@
121121
<!-- power button -->
122122
<Button
123123
v-if="
124-
player.power_control != PLAYER_CONTROL_NONE && allowPowerControl
124+
player.power_control != PLAYER_CONTROL_NONE &&
125+
allowPowerControl &&
126+
player.powered
125127
"
126128
variant="ghost-icon"
127129
size="icon"

0 commit comments

Comments
 (0)