2020-02-16 19:30:00 +01:00
|
|
|
import Vue from 'vue'
|
2020-03-24 14:22:29 +01:00
|
|
|
import FtFlexBox from '../ft-flex-box/ft-flex-box.vue'
|
|
|
|
import SideNavMoreOptions from '../side-nav-more-options/side-nav-more-options.vue'
|
2020-02-16 19:30:00 +01:00
|
|
|
import router from '../../router/index.js'
|
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
name: 'SideNav',
|
2020-03-24 14:22:29 +01:00
|
|
|
components: {
|
|
|
|
'ft-flex-box': FtFlexBox,
|
|
|
|
'side-nav-more-options': SideNavMoreOptions
|
|
|
|
},
|
2020-02-16 19:30:00 +01:00
|
|
|
computed: {
|
|
|
|
isOpen: function () {
|
|
|
|
return this.$store.getters.getIsSideNavOpen
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
navigate: function (route) {
|
|
|
|
router.push('/' + route)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|