Skip to content

TaskView is a self-hosted project and task management platform focused on clarity, ownership, and control. TaskView is built for teams that want a transparent, self-hosted alternative to SaaS task managers.

452 B
Raw Blame
<template>
  <UButton
    :icon="isSidebarCollapsed ? 'i-lucide-panel-right' : 'i-lucide-panel-left'"
    color="neutral"
    variant="soft"
    class="lg:flex hidden cursor-pointer"
    @click="toggleSidebar"
  />
</template>

<script setup lang="ts">
import { useDashboard } from '@/composables/useDashboard'

const { isSidebarCollapsed } = useDashboard()

function toggleSidebar() {
  isSidebarCollapsed.value = !isSidebarCollapsed.value
}
</script>