Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/Widgets/Menu.vue
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | export default { | ||||
data() { | data() { | ||||
return { | return { | ||||
buildYear: buildDate.getFullYear(), | buildYear: buildDate.getFullYear(), | ||||
languages: window.config['languages'] || [], | languages: window.config['languages'] || [], | ||||
menuList: [] | menuList: [] | ||||
} | } | ||||
}, | }, | ||||
computed: { | computed: { | ||||
loggedIn() { return this.$store.state.isLoggedIn }, | loggedIn() { return !!this.$root.authInfo }, | ||||
menu() { return this.menuList.filter(item => !item.footer || this.mode == 'footer') }, | menu() { return this.menuList.filter(item => !item.footer || this.mode == 'footer') }, | ||||
route() { return this.$route.name } | route() { return this.$route.name } | ||||
}, | }, | ||||
mounted() { | mounted() { | ||||
this.menuList = this.loadMenu() | this.menuList = this.loadMenu() | ||||
}, | }, | ||||
methods: { | methods: { | ||||
loadMenu() { | loadMenu() { | ||||
Show All 38 Lines |