Line data Source code
1 : <template>
2 299 : <Button
3 : :tooltip="$t('sideToolbar.closeSidebar')"
4 : tooltip-side="bottom"
5 : variant="muted-textonly"
6 : size="icon"
7 : class="shrink-0"
8 : data-testid="sidebar-close-button"
9 : :aria-label="$t('sideToolbar.closeSidebar')"
10 : @click="sidebarTabStore.activeSidebarTabId = null"
11 : >
12 : <i class="icon-[lucide--x]" />
13 : </Button>
14 : </template>
15 :
16 : <script setup lang="ts">
17 : import Button from '@comfyorg/design-system/button/Button'
18 : import { useSidebarTabStore } from '@/stores/workspace/sidebarTabStore'
19 :
20 297 : const sidebarTabStore = useSidebarTabStore()
21 : </script>
|