summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ide/stores/mutations
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-05-04 12:52:46 +0100
committerPhil Hughes <me@iamphill.com>2018-05-04 12:52:46 +0100
commitcb8682b841b92cb6f97906bb9289ccbb13f2f31e (patch)
tree68709bcdb3bcfabce89cff61cdd422baf6ef3117 /app/assets/javascripts/ide/stores/mutations
parent255e8ea8fddb19eb0300ef4369b2b1b29443d132 (diff)
downloadgitlab-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.js6
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,