This commit is contained in:
2019-11-12 19:40:56 +00:00
parent 7d9fe0d3b8
commit 5372800378
5 changed files with 30 additions and 8 deletions

View File

@@ -156,6 +156,11 @@ export default {
mounted() {
this.$root.$gzconfirm = this.$refs.gzconfirm.open;
this.$root.$gznotify = this.$refs.gznotify.addNotification;
//weird bastardization thing
//basically I want to access $gz in vue components where I can't access Window
//this smells bad but it works
this.$root.$gz = window.$gz;
//redirect to login if not authenticated
if (!this.$store.state.authenticated) {