diff options
author | Phil Hughes <me@iamphill.com> | 2018-05-04 12:52:46 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-05-04 12:52:46 +0100 |
commit | cb8682b841b92cb6f97906bb9289ccbb13f2f31e (patch) | |
tree | 68709bcdb3bcfabce89cff61cdd422baf6ef3117 /app/assets/javascripts/ide/stores/mutations | |
parent | 255e8ea8fddb19eb0300ef4369b2b1b29443d132 (diff) | |
download | gitlab-ce-cb8682b841b92cb6f97906bb9289ccbb13f2f31e.tar.gz |
improve logic of success message
instead of taking over whole sidebar, it now just shows over the commit box
after 5 seconds the commit box goes back to its compact logic
Diffstat (limited to 'app/assets/javascripts/ide/stores/mutations')
-rw-r--r-- | app/assets/javascripts/ide/stores/mutations/file.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/ide/stores/mutations/file.js b/app/assets/javascripts/ide/stores/mutations/file.js index 32fc3798a5f..13f123b6630 100644 --- a/app/assets/javascripts/ide/stores/mutations/file.js +++ b/app/assets/javascripts/ide/stores/mutations/file.js @@ -173,6 +173,12 @@ export default { state.entries[file.path].opened = false; state.entries[file.path].active = false; state.entries[file.path].lastOpenedAt = new Date().getTime(); + state.openFiles.forEach(f => + Object.assign(f, { + opened: false, + active: false, + }), + ); state.openFiles = [ { ...file, |