diff options
author | Marco Ambrosini <marcoambrosini@pm.me> | 2020-07-28 18:08:40 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-08-12 03:35:11 +0200 |
commit | 6ef9611ebc68901b6416b19f742aaaf098ef988e (patch) | |
tree | cdaacc47aac3a247d41e20b7ef01193c7460a141 /src/store | |
parent | 722fe35aab6d497303499e975350f731e6266dee (diff) |
Store visibility of the upload editor
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Diffstat (limited to 'src/store')
-rw-r--r-- | src/store/fileUploadStore.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/store/fileUploadStore.js b/src/store/fileUploadStore.js index 2c765c83d..cd073665d 100644 --- a/src/store/fileUploadStore.js +++ b/src/store/fileUploadStore.js @@ -33,6 +33,7 @@ const state = { uploads: { }, currentUploadId: undefined, + showUploadEditor: false, } const getters = { @@ -69,6 +70,10 @@ const getters = { currentUploadId: (state) => { return state.currentUploadId }, + + showUploadEditor: (state) => { + return state.showUploadEditor + }, } const mutations = { @@ -141,6 +146,11 @@ const mutations = { setCurrentUploadId(state, currentUploadId) { state.currentUploadId = currentUploadId }, + + // Shows hides the upload editor + showUploadEditor(state, show) { + state.showUploadEditor = show + }, } const actions = { |