FreeTube/src/renderer/components/side-nav/side-nav.js

23 lines
542 B
JavaScript
Raw Normal View History

2020-02-16 19:30:00 +01:00
import Vue from 'vue'
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',
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)
}
}
})