diff --git a/src/App.vue b/src/App.vue index 15e9fc846..087cf3e34 100644 --- a/src/App.vue +++ b/src/App.vue @@ -13,159 +13,22 @@ :style="{'background-image': `url(${background})`}" class="app-container" > -
- - - - Powered by Vikunja -
+
- +
@@ -223,7 +86,7 @@ - + @@ -236,14 +99,16 @@ import authTypes from './models/authTypes' import Rights from './models/rights.json' import Notification from './components/misc/notification' -import {CURRENT_LIST, IS_FULLPAGE, MENU_ACTIVE, ONLINE} from './store/mutation-types' +import {CURRENT_LIST, IS_FULLPAGE, KEYBOARD_SHORTCUTS_ACTIVE, MENU_ACTIVE, ONLINE} from './store/mutation-types' import KeyboardShortcuts from './components/misc/keyboard-shortcuts' -import topNavigation from '@/components/home/topNavigation' +import TopNavigation from '@/components/home/topNavigation' +import Navigation from '@/components/home/navigation' export default { name: 'app', components: { - topNavigation, + Navigation, + TopNavigation, KeyboardShortcuts, Notification, }, @@ -251,7 +116,6 @@ export default { return { currentDate: new Date(), authTypes: authTypes, - keyboardShortcutsActive: false, } }, beforeMount() { @@ -297,7 +161,7 @@ export default { created() { // Make sure to always load the home route when running with electron - if(this.$route.fullPath.endsWith('frontend/index.html')) { + if (this.$route.fullPath.endsWith('frontend/index.html')) { this.$router.push({name: 'home'}) } @@ -354,6 +218,7 @@ export default { privacyPolicyUrl: state => state.config.legal.privacyPolicyUrl, canWriteCurrentList: state => state.currentList.maxRight > Rights.READ, menuActive: MENU_ACTIVE, + keyboardShortcutsActive: KEYBOARD_SHORTCUTS_ACTIVE, }), methods: { logout() { diff --git a/src/components/home/navigation.vue b/src/components/home/navigation.vue new file mode 100644 index 000000000..a074344d8 --- /dev/null +++ b/src/components/home/navigation.vue @@ -0,0 +1,158 @@ + + + diff --git a/src/components/misc/keyboard-shortcuts.vue b/src/components/misc/keyboard-shortcuts.vue index 4a41e1337..138d4a997 100644 --- a/src/components/misc/keyboard-shortcuts.vue +++ b/src/components/misc/keyboard-shortcuts.vue @@ -88,11 +88,13 @@