Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Ivan Vargas <jvargas@gitlab.com>2019-05-28 01:30:36 +0300
committerFatih Acet <acetfatih@gmail.com>2019-05-28 01:30:36 +0300
commit218dd512393b34f9a26adc81ccb99bc969674a5b (patch)
treec5fbaf55d4e93489aa049e92c4da2e610f633b32 /spec/javascripts/monitoring/helpers.js
parent3cac033de5210031d1a3da712d0b1d957ce9580a (diff)
Migrate the monitoring dashboard store to vuex
This changes the monitoring javascript store from an object based to a vuex one
Diffstat (limited to 'spec/javascripts/monitoring/helpers.js')
-rw-r--r--spec/javascripts/monitoring/helpers.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/javascripts/monitoring/helpers.js b/spec/javascripts/monitoring/helpers.js
new file mode 100644
index 00000000000..672e3b948c4
--- /dev/null
+++ b/spec/javascripts/monitoring/helpers.js
@@ -0,0 +1,8 @@
+// eslint-disable-next-line import/prefer-default-export
+export const resetStore = store => {
+ store.replaceState({
+ showEmptyState: true,
+ emptyState: 'loading',
+ groups: [],
+ });
+};