Disabled news

pull/3613/head
Cagatay Civici 2023-01-30 16:02:25 +03:00
parent 216f519e4a
commit cf1a9838d6
3 changed files with 6 additions and 6 deletions

View File

@ -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>

View File

@ -22,7 +22,7 @@ export default {
};
},
mounted() {
EventBus.emit('news-activate');
//EventBus.emit('news-activate');
},
methods: {
onClose() {

View File

@ -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: {} });
}
};