From 988dd7c0dea24fddba11ce10e54d36d194751790 Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Thu, 30 Jun 2022 17:25:53 +0200 Subject: [PATCH] VBV-85: Update Navigation --- client/src/App.vue | 8 +++-- client/src/components/Footer.vue | 21 +++++++++++++ client/src/components/MainNavigationBar.vue | 35 ++++++++++++++++++--- client/src/router/index.ts | 19 ++++------- client/src/views/CockpitView.vue | 31 ++++++++++++++++++ client/src/views/DashboardView.vue | 15 --------- client/src/views/LearningPathView.vue | 32 ++++++++++--------- client/tailwind.config.js | 2 +- 8 files changed, 113 insertions(+), 50 deletions(-) create mode 100644 client/src/components/Footer.vue create mode 100644 client/src/views/CockpitView.vue delete mode 100644 client/src/views/DashboardView.vue diff --git a/client/src/App.vue b/client/src/App.vue index 8dd258e8..10f11ea1 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -1,7 +1,8 @@ @@ -9,6 +10,7 @@ import * as log from 'loglevel'; import MainNavigationBar from '@/components/MainNavigationBar.vue'; +import Footer from '@/components/Footer.vue'; log.debug('App created'); diff --git a/client/src/components/Footer.vue b/client/src/components/Footer.vue new file mode 100644 index 00000000..262251e0 --- /dev/null +++ b/client/src/components/Footer.vue @@ -0,0 +1,21 @@ + + + + + diff --git a/client/src/components/MainNavigationBar.vue b/client/src/components/MainNavigationBar.vue index 64d53f5c..3ddaa904 100644 --- a/client/src/components/MainNavigationBar.vue +++ b/client/src/components/MainNavigationBar.vue @@ -26,6 +26,18 @@ function menuActive(checkPath) { return route.path.startsWith(checkPath); } +function inLearningPath() { + return route.path.startsWith('/learningpath/') || route.path.startsWith('/circle/'); +} + +function backButtonUrl() { + if (route.path.startsWith('/circle/')) { + return '/learningpath/versicherungsvermittlerin'; + } + + return '/'; +} +