Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-04-19 16:13:16 +0300
committerPhil Hughes <me@iamphill.com>2018-04-19 16:13:16 +0300
commit5d1d5830ac728a59b6f12cccddbe185956c68a39 (patch)
tree4d6b92fef3d4166a51dcfa7a059e0bbb8c464397 /app/assets/javascripts/ide/stores/utils.js
parent356a37cf50a3a164dd6004ed06f310895539105a (diff)
parent54e262965d213ad7b3b258f54805485c3110040a (diff)
Merge branch 'master' into ide-temp-file-folder-fixes
Diffstat (limited to 'app/assets/javascripts/ide/stores/utils.js')
-rw-r--r--app/assets/javascripts/ide/stores/utils.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/ide/stores/utils.js b/app/assets/javascripts/ide/stores/utils.js
index fefdbc3222f..1fd0d18ff51 100644
--- a/app/assets/javascripts/ide/stores/utils.js
+++ b/app/assets/javascripts/ide/stores/utils.js
@@ -15,6 +15,7 @@ export const dataStructure = () => ({
opened: false,
active: false,
changed: false,
+ staged: false,
lastCommitPath: '',
lastCommit: {
id: '',
@@ -104,7 +105,7 @@ export const setPageTitle = title => {
export const createCommitPayload = (branch, newBranch, state, rootState) => ({
branch,
commit_message: state.commitMessage,
- actions: rootState.changedFiles.map(f => ({
+ actions: rootState.stagedFiles.map(f => ({
action: f.tempFile ? 'create' : 'update',
file_path: f.path,
content: f.content,