diff --git a/.env b/.env index 783605fc..3be4fe3c 100644 --- a/.env +++ b/.env @@ -14,3 +14,4 @@ VITE_OMNI_WIDGET_URL = '/omni-widget' VITE_FLOW_DIAGRAM_URL = '/flow-diagram' VITE_SETTINGS_URL = '/settings' +VITE_START_PAGE_URL = '/' diff --git a/.env.development b/.env.development index ceb8ca81..11db6ac4 100644 --- a/.env.development +++ b/.env.development @@ -14,3 +14,4 @@ VITE_OMNI_WIDGET_URL = 'https://dev.webitel.com/omni-widget' VITE_FLOW_DIAGRAM_URL = 'https://dev.webitel.com/flow-diagram' VITE_SETTINGS_URL = 'https://dev.webitel.com/settings' +VITE_START_PAGE_URL = 'https://dev.webitel.com' diff --git a/src/app/components/the-crm-workspace.vue b/src/app/components/the-crm-workspace.vue index 01c01f62..05d9fb02 100644 --- a/src/app/components/the-crm-workspace.vue +++ b/src/app/components/the-crm-workspace.vue @@ -8,9 +8,11 @@ :nav="nav" :dark-mode="darkMode" /> - + + + store.getters['appearance/DARK_MODE']); const { t } = useI18n(); +const startPageHref = computed(() => import.meta.env.VITE_START_PAGE_URL); + const apps = computed(() => { const agent = { name: WebitelApplications.AGENT,