systemSetupBeforeRouteEnterGuard.ts 349 B

12345678910111213
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { useSystemSetupInfoStore } from '#desktop/pages/guided-setup/stores/systemSetupInfo.ts'
  3. export const systemSetupBeforeRouteEnterGuard = () => {
  4. const { systemSetupDone } = useSystemSetupInfoStore()
  5. if (systemSetupDone) {
  6. return '/'
  7. }
  8. return true
  9. }