@@ -150,6 +151,7 @@ import PanelEntry from '../../components/dashboard/PanelEntry'
import PanelChart from '../../components/dashboard/PanelChart'
import PanelFeature from '../../components/dashboard/PanelFeature'
import PanelProvider from '../../components/dashboard/PanelProvider'
+import PlatformNotification from '../../components/platform/PlatformNotification'
export default {
name: 'PageDashboardIndex',
@@ -159,7 +161,8 @@ export default {
PanelEntry,
PanelChart,
PanelFeature,
- PanelProvider
+ PanelProvider,
+ PlatformNotification
},
data () {
return {
diff --git a/webui/src/store/index.js b/webui/src/store/index.js
index 5011c5bd4..c41c8ba8c 100644
--- a/webui/src/store/index.js
+++ b/webui/src/store/index.js
@@ -6,6 +6,7 @@ import entrypoints from './entrypoints'
import http from './http'
import tcp from './tcp'
import udp from './udp'
+import platform from './platform'
Vue.use(Vuex)
@@ -21,7 +22,8 @@ export default function (/* { ssrContext } */) {
entrypoints,
http,
tcp,
- udp
+ udp,
+ platform
},
// enable strict mode (adds overhead!)
diff --git a/webui/src/store/platform/index.js b/webui/src/store/platform/index.js
new file mode 100644
index 000000000..cfe4c07dd
--- /dev/null
+++ b/webui/src/store/platform/index.js
@@ -0,0 +1,27 @@
+export default {
+ namespaced: true,
+ getters: {
+ isOpen (state) {
+ return state.isOpen
+ }
+ },
+ mutations: {
+ toggle (state, isOpen) {
+ state.isOpen = isOpen || !state.isOpen
+ }
+ },
+ actions: {
+ toggle ({ commit }) {
+ commit('toggle')
+ },
+ open ({ commit }) {
+ commit('toggle', true)
+ },
+ close ({ commit }) {
+ commit('toggle', false)
+ }
+ },
+ state: {
+ isOpen: false
+ }
+}