diff --git a/ayanova/src/App.vue b/ayanova/src/App.vue index bb868a00..d2caa2da 100644 --- a/ayanova/src/App.vue +++ b/ayanova/src/App.vue @@ -156,7 +156,7 @@ export default { }, mounted() { //this.$root.$gzconfirm = this.$refs.gzconfirm.open; - this.$root.$gznotify = this.$refs.gznotify.open; + this.$root.$gznotify = this.$refs.gznotify.addNotification; //redirect to login if not authenticated if (!this.$store.state.authenticated) { diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js index ffd2cb42..03e5f61d 100644 --- a/ayanova/src/api/initialize.js +++ b/ayanova/src/api/initialize.js @@ -154,18 +154,18 @@ export default function initialize() { localOffset ); - // window.$gz.eventBus.$emit( - // "notify-warning", - // "this is a warning test" - // ); - // window.$gz.eventBus.$emit( - // "notify-error", - // "this is an error test" - // ); - // window.$gz.eventBus.$emit( - // "notify-success", - // "this is a success test" - // ); + window.$gz.eventBus.$emit( + "notify-warning", + "this is a warning test" + ); + window.$gz.eventBus.$emit( + "notify-error", + "this is an error test" + ); + window.$gz.eventBus.$emit( + "notify-success", + "this is a success test" + ); } //Store offset in locale data diff --git a/ayanova/src/components/gznotify.vue b/ayanova/src/components/gznotify.vue index 9f5c0d1a..88f3c309 100644 --- a/ayanova/src/components/gznotify.vue +++ b/ayanova/src/components/gznotify.vue @@ -3,7 +3,6 @@ :value="isVisible" :color="options.type" :timeout="options.timeout" - > {{ message }} @@ -15,11 +14,11 @@