CommonPageHelpDialog.vue 618 B

1234567891011121314151617181920212223242526272829
  1. <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import { ref, type Slot } from 'vue'
  4. import CommonDialog from '#desktop/components/CommonDialog/CommonDialog.vue'
  5. interface Props {
  6. content: Slot
  7. }
  8. defineProps<Props>()
  9. ref<InstanceType<typeof CommonDialog>>()
  10. </script>
  11. <template>
  12. <CommonDialog
  13. name="page-help"
  14. :header-title="__('Help')"
  15. wrapper-tag="article"
  16. header-icon="question-circle"
  17. :footer-action-options="{
  18. hideCancelButton: true,
  19. }"
  20. >
  21. <component :is="content"></component>
  22. </CommonDialog>
  23. </template>