Disabled news
parent
216f519e4a
commit
cf1a9838d6
8
app.vue
8
app.vue
|
@ -34,7 +34,7 @@ export default {
|
||||||
this.newsService = new NewsService();
|
this.newsService = new NewsService();
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.newsActivate = () => {
|
/*this.newsActivate = () => {
|
||||||
this.newsService.fetchNews().then((data) => {
|
this.newsService.fetchNews().then((data) => {
|
||||||
this.$appState.announcement = data;
|
this.$appState.announcement = data;
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ export default {
|
||||||
this.$appState.newsActive = true;
|
this.$appState.newsActive = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};*/
|
||||||
|
|
||||||
this.themeChangeListener = (event) => {
|
this.themeChangeListener = (event) => {
|
||||||
const elementId = 'theme-link';
|
const elementId = 'theme-link';
|
||||||
|
@ -71,11 +71,11 @@ export default {
|
||||||
};
|
};
|
||||||
|
|
||||||
EventBus.on('theme-change', this.themeChangeListener);
|
EventBus.on('theme-change', this.themeChangeListener);
|
||||||
EventBus.on('news-activate', this.newsActivate);
|
//EventBus.on('news-activate', this.newsActivate);
|
||||||
},
|
},
|
||||||
beforeUnmount() {
|
beforeUnmount() {
|
||||||
EventBus.off('theme-change', this.themeChangeListener);
|
EventBus.off('theme-change', this.themeChangeListener);
|
||||||
EventBus.off('news-activate', this.newsActivate);
|
//EventBus.off('news-activate', this.newsActivate);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -22,7 +22,7 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
EventBus.emit('news-activate');
|
//EventBus.emit('news-activate');
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onClose() {
|
onClose() {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const $appState = {
|
const $appState = {
|
||||||
install: (Vue, options) => {
|
install: (Vue, options) => {
|
||||||
Vue.config.globalProperties.$appState = reactive({ theme: 'lara-light-blue', darkTheme: false, codeSandbox: false, sourceType: 'options-api', newsActive: true, announcement: {} });
|
Vue.config.globalProperties.$appState = reactive({ theme: 'lara-light-blue', darkTheme: false, codeSandbox: false, sourceType: 'options-api', newsActive: false, announcement: {} });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue