Initial working new notify - needs sprucing up but working!
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
<template>
|
||||
<v-app>
|
||||
<gznotify ref="gznotify"></gznotify>
|
||||
<!-- <gzconfirm ref="gzconfirm"></gzconfirm> -->
|
||||
<!-- <gztest ref="gztest"></gztest> -->
|
||||
<v-navigation-drawer v-if="isAuthenticated" v-model="drawer" app>
|
||||
<v-list dense>
|
||||
<v-list-item
|
||||
@@ -114,8 +117,17 @@
|
||||
<script>
|
||||
/* xeslint-disable */
|
||||
import aboutInfo from "./api/aboutinfo";
|
||||
//import gzconfirm from "./components/gzconfirm";
|
||||
import gznotify from "./components/gznotify";
|
||||
//import gztest from "./components/gztest";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
//gztest
|
||||
//gzconfirm
|
||||
// ,
|
||||
gznotify
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
drawer: null,
|
||||
@@ -143,6 +155,9 @@ export default {
|
||||
window.$gz.eventBus.$off();
|
||||
},
|
||||
mounted() {
|
||||
//this.$root.$gzconfirm = this.$refs.gzconfirm.open;
|
||||
this.$root.$gznotify = this.$refs.gznotify.open;
|
||||
|
||||
//redirect to login if not authenticated
|
||||
if (!this.$store.state.authenticated) {
|
||||
this.$router.push({ name: "login" });
|
||||
|
||||
Reference in New Issue
Block a user