From 2571856fc52eecf0d39f517905e14e7a9d2267da Mon Sep 17 00:00:00 2001 From: Sam Bigelow Date: Tue, 2 Apr 2019 15:27:34 -0400 Subject: Shortcut to create MR in web IDE Before the user had to choose between committing to a new branch, committing to a new branch AND creating an MR, or committing to the current branch regardless of whether or not it already has an MR. This commit separates the creation of an MR from whether or not they commit to an existing or new branch --- .../ide/components/commit_sidebar/actions.vue | 35 ++++++++++++++-------- .../ide/components/repo_commit_section.vue | 2 +- app/assets/javascripts/ide/stores/getters.js | 5 +++- .../ide/stores/modules/commit/actions.js | 34 +++++++++++++-------- .../ide/stores/modules/commit/constants.js | 10 +++++-- .../ide/stores/modules/commit/getters.js | 12 ++++---- .../ide/stores/modules/commit/mutation_types.js | 1 + .../ide/stores/modules/commit/mutations.js | 12 +++++++- .../javascripts/ide/stores/modules/commit/state.js | 1 + 9 files changed, 75 insertions(+), 37 deletions(-) (limited to 'app/assets/javascripts/ide') diff --git a/app/assets/javascripts/ide/components/commit_sidebar/actions.vue b/app/assets/javascripts/ide/components/commit_sidebar/actions.vue index d360dc42cd3..1824a0f6147 100644 --- a/app/assets/javascripts/ide/components/commit_sidebar/actions.vue +++ b/app/assets/javascripts/ide/components/commit_sidebar/actions.vue @@ -1,17 +1,23 @@