Skip to content

Commit

Permalink
Dropdown list fix
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Sep 25, 2024
1 parent 72d9aab commit 2a80865
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/components/appMenu/AppMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<Button
:label="item.label"
:icon="item.icon"
severity="secondary"
:severity="item.key === queueMode ? 'primary' : 'secondary'"
text
v-tooltip="item.tooltip"
/>
Expand Down Expand Up @@ -73,8 +73,7 @@ import BatchCountEdit from './BatchCountEdit.vue'
import {
AutoQueueMode,
useQueuePendingTaskCountStore,
useQueueSettingsStore,
useQueueStore
useQueueSettingsStore
} from '@/stores/queueStore'
import { app } from '@/scripts/app'
import { storeToRefs } from 'pinia'
Expand Down Expand Up @@ -127,9 +126,7 @@ const activeQueueModeMenuItem = computed(
() => queueModeMenuItemLookup[queueMode.value]
)
const queueModeMenuItems = computed(() =>
Object.values(queueModeMenuItemLookup).filter(
(item) => item.key !== queueMode.value
)
Object.values(queueModeMenuItemLookup)
)
const executingPrompt = computed(() => !!queueCountStore.count.value)
Expand Down

0 comments on commit 2a80865

Please sign in to comment.