CommonPageHelp.vue 628 B

123456789101112131415161718192021222324
  1. <!-- Copyright (C) 2012-2025 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import CommonButton from '#desktop/components/CommonButton/CommonButton.vue'
  4. import { useDialog } from '#desktop/components/CommonDialog/useDialog.ts'
  5. const pageHelpDialog = useDialog({
  6. name: 'page-help',
  7. component: () => import('./CommonPageHelpDialog.vue'),
  8. })
  9. defineSlots<{
  10. default(): never // any
  11. }>()
  12. </script>
  13. <template>
  14. <CommonButton
  15. prefix-icon="question-circle"
  16. size="medium"
  17. @click="pageHelpDialog.open({ content: $slots?.default })"
  18. >{{ $t('Help') }}</CommonButton
  19. >
  20. </template>