Cleanup fullpage stuff

This commit is contained in:
kolaente 2021-01-21 21:45:55 +01:00
parent 1976fee261
commit 2c1e58f131
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
4 changed files with 2 additions and 13 deletions

View File

@ -12,7 +12,6 @@
<div
:class="[
{
'fullpage-overlay': fullpage,
'is-menu-enabled': menuActive,
},
$route.name,
@ -37,7 +36,7 @@
<script>
import {mapState} from 'vuex'
import {CURRENT_LIST, IS_FULLPAGE, MENU_ACTIVE} from '@/store/mutation-types'
import {CURRENT_LIST, MENU_ACTIVE} from '@/store/mutation-types'
import Navigation from '@/components/home/navigation'
export default {
@ -50,7 +49,6 @@ export default {
this.renewTokenOnFocus()
},
computed: mapState({
fullpage: IS_FULLPAGE,
namespaces(state) {
return state.namespaces.namespaces.filter(n => !n.isArchived)
},
@ -62,7 +60,6 @@ export default {
methods: {
doStuffAfterRoute() {
// this.setTitle('') // Reset the title if the page component does not set one itself
this.$store.commit(IS_FULLPAGE, false)
this.hideMenuOnMobile()
this.resetCurrentList()
},

View File

@ -133,12 +133,11 @@
<script>
import {mapState} from 'vuex'
import {CURRENT_LIST, IS_FULLPAGE, MENU_ACTIVE, LOADING, LOADING_MODULE} from '@/store/mutation-types'
import {CURRENT_LIST, MENU_ACTIVE, LOADING, LOADING_MODULE} from '@/store/mutation-types'
export default {
name: 'navigation',
computed: mapState({
fullpage: IS_FULLPAGE,
namespaces(state) {
return state.namespaces.namespaces.filter(n => !n.isArchived)
},

View File

@ -4,7 +4,6 @@ import {
CURRENT_LIST,
ERROR_MESSAGE,
HAS_TASKS,
IS_FULLPAGE,
KEYBOARD_SHORTCUTS_ACTIVE,
LOADING,
LOADING_MODULE,
@ -39,7 +38,6 @@ export const store = new Vuex.Store({
loadingModule: null,
errorMessage: '',
online: true,
isFullpage: false,
// This is used to highlight the current list in menu for all list related views
currentList: {id: 0},
background: '',
@ -60,9 +58,6 @@ export const store = new Vuex.Store({
[ONLINE](state, online) {
state.online = online
},
[IS_FULLPAGE](state, fullpage) {
state.isFullpage = fullpage
},
[CURRENT_LIST](state, currentList) {
setTitle(currentList.title)

View File

@ -39,7 +39,6 @@
<script>
import NamespaceModel from '../../models/namespace'
import NamespaceService from '../../services/namespace'
import { IS_FULLPAGE } from '@/store/mutation-types'
import Create from '@/components/misc/create'
export default {
@ -57,7 +56,6 @@ export default {
created() {
this.namespace = new NamespaceModel()
this.namespaceService = new NamespaceService()
this.$store.commit(IS_FULLPAGE, true)
},
mounted() {
this.setTitle('Create a new namespace')