Disabled news
parent
216f519e4a
commit
cf1a9838d6
8
app.vue
8
app.vue
|
@ -34,7 +34,7 @@ export default {
|
|||
this.newsService = new NewsService();
|
||||
},
|
||||
mounted() {
|
||||
this.newsActivate = () => {
|
||||
/*this.newsActivate = () => {
|
||||
this.newsService.fetchNews().then((data) => {
|
||||
this.$appState.announcement = data;
|
||||
|
||||
|
@ -50,7 +50,7 @@ export default {
|
|||
this.$appState.newsActive = true;
|
||||
}
|
||||
});
|
||||
};
|
||||
};*/
|
||||
|
||||
this.themeChangeListener = (event) => {
|
||||
const elementId = 'theme-link';
|
||||
|
@ -71,11 +71,11 @@ export default {
|
|||
};
|
||||
|
||||
EventBus.on('theme-change', this.themeChangeListener);
|
||||
EventBus.on('news-activate', this.newsActivate);
|
||||
//EventBus.on('news-activate', this.newsActivate);
|
||||
},
|
||||
beforeUnmount() {
|
||||
EventBus.off('theme-change', this.themeChangeListener);
|
||||
EventBus.off('news-activate', this.newsActivate);
|
||||
//EventBus.off('news-activate', this.newsActivate);
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -22,7 +22,7 @@ export default {
|
|||
};
|
||||
},
|
||||
mounted() {
|
||||
EventBus.emit('news-activate');
|
||||
//EventBus.emit('news-activate');
|
||||
},
|
||||
methods: {
|
||||
onClose() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
const $appState = {
|
||||
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