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(); 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>

View File

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

View File

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