diff options
author | Phil Hughes <me@iamphill.com> | 2018-04-05 10:46:19 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-04-05 11:11:52 +0100 |
commit | d0378125afbd835b9245e15d66fb96eb7d32e0af (patch) | |
tree | 4a1a232ac58b97bedad8c6e99b95a1f00f1043d8 /app/assets/javascripts/ide/components/commit_sidebar/list_item.vue | |
parent | c02d344c4d13938e9e44c2c9051ddc73f26c0086 (diff) | |
download | gitlab-ce-d0378125afbd835b9245e15d66fb96eb7d32e0af.tar.gz |
update staged files to correctly use pending tab
Diffstat (limited to 'app/assets/javascripts/ide/components/commit_sidebar/list_item.vue')
-rw-r--r-- | app/assets/javascripts/ide/components/commit_sidebar/list_item.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/ide/components/commit_sidebar/list_item.vue b/app/assets/javascripts/ide/components/commit_sidebar/list_item.vue index ab88055fc36..6d4e79f2d7a 100644 --- a/app/assets/javascripts/ide/components/commit_sidebar/list_item.vue +++ b/app/assets/javascripts/ide/components/commit_sidebar/list_item.vue @@ -31,7 +31,10 @@ export default { methods: { ...mapActions(['discardFileChanges', 'updateViewer', 'openPendingTab']), openFileInEditor() { - return this.openPendingTab(this.file).then(changeViewer => { + return this.openPendingTab({ + file: this.file, + keyPrefix: this.file.staged ? 'staged' : 'unstaged', + }).then(changeViewer => { if (changeViewer) { this.updateViewer('diff'); } |