PersonalSetting.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import { useSessionStore } from '#shared/stores/session.ts'
  4. import LayoutSidebar from '#desktop/components/layout/LayoutSidebar.vue'
  5. import { useResizeGridColumns } from '#desktop/composables/useResizeGridColumns.ts'
  6. import PersonalSettingSidebar from '#desktop/pages/personal-setting/components/PersonalSettingSidebar.vue'
  7. const { userId } = useSessionStore()
  8. const storageKeyId = `${userId}-personal-setting`
  9. const { gridColumns, collapseSidebar, expandSidebar } =
  10. useResizeGridColumns(storageKeyId)
  11. </script>
  12. <template>
  13. <div class="grid h-full duration-100" :style="gridColumns">
  14. <LayoutSidebar
  15. id="personal-settings-sidebar"
  16. :name="storageKeyId"
  17. collapsible
  18. class="bg-blue-50 dark:bg-gray-800"
  19. icon-collapsed="person-gear"
  20. @collapse="collapseSidebar"
  21. @expand="expandSidebar"
  22. >
  23. <PersonalSettingSidebar />
  24. </LayoutSidebar>
  25. <RouterView />
  26. </div>
  27. </template>