CommonPageHelp.vue 581 B

1234567891011121314151617181920
  1. <!-- Copyright (C) 2012-2024 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. </script>
  10. <template>
  11. <CommonButton
  12. prefix-icon="question-circle"
  13. size="medium"
  14. @click="pageHelpDialog.open({ content: $slots.default })"
  15. >{{ $t('Help') }}</CommonButton
  16. >
  17. </template>