diff options
author | Paul Slaughter <pslaughter@gitlab.com> | 2018-09-27 16:57:30 -0500 |
---|---|---|
committer | Paul Slaughter <pslaughter@gitlab.com> | 2018-09-28 15:03:39 -0500 |
commit | adbf6149cf1778cd48a9bbf8e97332669dbcb7cb (patch) | |
tree | 01f53873bc7dbe0b04d8de8182af359e21ecc2b4 /app/assets/javascripts/ide/stores/modules/pane/index.js | |
parent | 1eefdf5da50030fbc342a08155ed4aa56805aea9 (diff) | |
download | gitlab-ce-adbf6149cf1778cd48a9bbf8e97332669dbcb7cb.tar.gz |
Keep IDE RightPane views aliveide-keep-right-pane-tabs-alive
**Why?**
- This is needed for the Web Terminal feature.
https://gitlab.com/gitlab-org/gitlab-ee/issues/5426
**Notes:**
- Introduces a `pane` Vuex module.
- Some views should not be kept alive (i.e. job details).
This is why a `keepAlive` flag was introduced for views.
Diffstat (limited to 'app/assets/javascripts/ide/stores/modules/pane/index.js')
-rw-r--r-- | app/assets/javascripts/ide/stores/modules/pane/index.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/assets/javascripts/ide/stores/modules/pane/index.js b/app/assets/javascripts/ide/stores/modules/pane/index.js new file mode 100644 index 00000000000..5f61cb732c8 --- /dev/null +++ b/app/assets/javascripts/ide/stores/modules/pane/index.js @@ -0,0 +1,12 @@ +import * as actions from './actions'; +import * as getters from './getters'; +import mutations from './mutations'; +import state from './state'; + +export default () => ({ + namespaced: true, + state: state(), + actions, + getters, + mutations, +}); |