diff --git a/app.vue b/app.vue index ed1b4f3b4..d154b960a 100644 --- a/app.vue +++ b/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); } }; diff --git a/layouts/AppNews.vue b/layouts/AppNews.vue index 67632ec3f..d7b9c07cc 100644 --- a/layouts/AppNews.vue +++ b/layouts/AppNews.vue @@ -22,7 +22,7 @@ export default { }; }, mounted() { - EventBus.emit('news-activate'); + //EventBus.emit('news-activate'); }, methods: { onClose() { diff --git a/plugins/appState.js b/plugins/appState.js index 91920d16f..5a60ea340 100644 --- a/plugins/appState.js +++ b/plugins/appState.js @@ -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: {} }); } };