diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2019-05-28 01:30:36 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2019-05-28 01:30:36 +0300 |
commit | 218dd512393b34f9a26adc81ccb99bc969674a5b (patch) | |
tree | c5fbaf55d4e93489aa049e92c4da2e610f633b32 /spec/javascripts/monitoring/helpers.js | |
parent | 3cac033de5210031d1a3da712d0b1d957ce9580a (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.js | 8 |
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: [], + }); +}; |