From 1293bec77e5137acf64d3536c286f8ba3df284f4 Mon Sep 17 00:00:00 2001 From: Shpuld Shpuldson Date: Thu, 2 Jul 2020 10:40:41 +0300 Subject: change storage error one-off into a global notice system --- .../global_notice_list/global_notice_list.js | 15 +++++ .../global_notice_list/global_notice_list.vue | 77 ++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 src/components/global_notice_list/global_notice_list.js create mode 100644 src/components/global_notice_list/global_notice_list.vue (limited to 'src/components') diff --git a/src/components/global_notice_list/global_notice_list.js b/src/components/global_notice_list/global_notice_list.js new file mode 100644 index 00000000..3af29c23 --- /dev/null +++ b/src/components/global_notice_list/global_notice_list.js @@ -0,0 +1,15 @@ + +const GlobalNoticeList = { + computed: { + notices () { + return this.$store.state.interface.globalNotices + } + }, + methods: { + closeNotice (notice) { + this.$store.dispatch('removeGlobalNotice', notice) + } + } +} + +export default GlobalNoticeList diff --git a/src/components/global_notice_list/global_notice_list.vue b/src/components/global_notice_list/global_notice_list.vue new file mode 100644 index 00000000..0e4285cc --- /dev/null +++ b/src/components/global_notice_list/global_notice_list.vue @@ -0,0 +1,77 @@ + + + + + -- cgit v1.2.3-70-g09d2