Skip to content

Commit 0ccbdbc

Browse files
add disabled state
1 parent 420719b commit 0ccbdbc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/apps/app/views/queue/components/queue-tabs/components/queue-info.component.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Button, Divider, Icon, Text, TimeUtil } from "@common";
1+
import { Button, Divider, Text, TimeUtil } from "@common";
22
import { useQueue } from "@queue";
33
import { type Accessor, type Component, For, type JSX, Show, createSignal } from "solid-js";
44
import { AutoplayOptionsModal } from "./autoplay-options-modal.component";
@@ -67,9 +67,10 @@ export const QueueInfo: Component = () => {
6767
class="flex-row-center space-x-1.5 px-2 h-full"
6868
flat
6969
onClick={() => setIsListenersModalOpen(true)}
70+
disabled={queue.data.empty}
71+
icon="people"
72+
iconSize="lg"
7073
>
71-
<Icon name="people" size="lg" class="text-neutral-400 mx-auto" />
72-
7374
<Show when={queue.data.voiceChannel.members.length}>
7475
<div class="flex-row-center overflow-x-clip -space-x-2">
7576
<For each={queue.data.voiceChannel.members.filter((m) => m.isInVoiceChannel)}>
@@ -89,6 +90,7 @@ export const QueueInfo: Component = () => {
8990
</div>
9091

9192
<Divider vertical dark />
93+
9294
<InfoItem
9395
horizontal
9496
description={() => (
@@ -116,6 +118,7 @@ export const QueueInfo: Component = () => {
116118
<Button
117119
icon="gear"
118120
flat
121+
disabled={queue.data.empty}
119122
class="p-2.5"
120123
onClick={() => setIsAutoplayOptionsModalOpen(true)}
121124
/>

0 commit comments

Comments
 (0)