GuidedSetupManualChannels.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import { useRouter } from 'vue-router'
  4. import CommonButton from '#desktop/components/CommonButton/CommonButton.vue'
  5. import GuidedSetupActionFooter from '../../components/GuidedSetupActionFooter.vue'
  6. import { useSystemSetup } from '../../composables/useSystemSetup.ts'
  7. import { emailBeforeRouteEnterGuard } from '../../router/guards/emailBeforeRouteEnterGuard.ts'
  8. defineOptions({
  9. beforeRouteEnter: emailBeforeRouteEnterGuard,
  10. })
  11. const router = useRouter()
  12. const { setTitle } = useSystemSetup()
  13. setTitle(__('Connect Channels'))
  14. const setupEmailChannel = () => {
  15. router.push('channels/email')
  16. }
  17. </script>
  18. <template>
  19. <div class="mb-2.5 flex flex-col items-center justify-center gap-5">
  20. <CommonLabel class="text-center">
  21. {{
  22. $t(
  23. 'Set up the communication channels you want to use with your Zammad.',
  24. )
  25. }}
  26. </CommonLabel>
  27. <CommonButton variant="primary" size="large" @click="setupEmailChannel()">
  28. {{ $t('Email Channel') }}
  29. </CommonButton>
  30. </div>
  31. <GuidedSetupActionFooter
  32. go-back-route="/guided-setup/manual/email-notification"
  33. skip-route="/guided-setup/manual/finish"
  34. />
  35. </template>