From 93bc3b5c3c1f520320da65a6275d16b599c3a557 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 1 Nov 2020 17:34:37 +0100 Subject: [PATCH] Cleanup --- src/App.vue | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/App.vue b/src/App.vue index f0925d705..e0dd4138d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -27,7 +27,6 @@ import router from './router' import {mapState} from 'vuex' import authTypes from './models/authTypes' -import Rights from './models/rights.json' import Notification from './components/misc/notification' import {CURRENT_LIST, IS_FULLPAGE, KEYBOARD_SHORTCUTS_ACTIVE, MENU_ACTIVE, ONLINE} from './store/mutation-types' @@ -96,11 +95,6 @@ export default { this.$router.push({name: 'home'}) } - // Hide the menu by default on mobile - if (window.innerWidth < 770) { - this.$store.commit(MENU_ACTIVE, false) - } - // Try renewing the token every time vikunja is loaded initially // (When opening the browser the focus event is not fired) this.$store.dispatch('auth/renewToken') @@ -135,20 +129,8 @@ export default { }, computed: mapState({ userInfo: state => state.auth.info, - userAvatar: state => state.auth.avatarUrl, userAuthenticated: state => state.auth.authenticated, - motd: state => state.config.motd, online: ONLINE, - fullpage: IS_FULLPAGE, - namespaces(state) { - return state.namespaces.namespaces.filter(n => !n.isArchived) - }, - currentList: CURRENT_LIST, - background: 'background', - imprintUrl: state => state.config.legal.imprintUrl, - privacyPolicyUrl: state => state.config.legal.privacyPolicyUrl, - canWriteCurrentList: state => state.currentList.maxRight > Rights.READ, - menuActive: MENU_ACTIVE, keyboardShortcutsActive: KEYBOARD_SHORTCUTS_ACTIVE, }), methods: {