Skip to content

Commit

Permalink
feature: startPageHref on logo added [WTEL-4252]
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirBeria committed Mar 5, 2024
1 parent c6b2f24 commit ffba3c3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ VITE_OMNI_WIDGET_URL = '/omni-widget'
VITE_FLOW_DIAGRAM_URL = '/flow-diagram'

VITE_SETTINGS_URL = '/settings'
VITE_START_PAGE_URL = '/'
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -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'
10 changes: 7 additions & 3 deletions src/app/components/the-crm-workspace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
:nav="nav"
:dark-mode="darkMode"
/>
<wt-logo
:dark-mode="darkMode"
/>
<a :href="startPageHref">
<wt-logo
:dark-mode="darkMode"
/>
</a>
<wt-dark-mode-switcher />
<wt-app-navigator
:apps="apps"
Expand Down Expand Up @@ -55,6 +57,8 @@ const darkMode = computed(() => 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,
Expand Down

0 comments on commit ffba3c3

Please sign in to comment.