From 58c270330ea987382913ec9b5b0de028ab93b0aa Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Thu, 3 May 2018 09:58:58 +0100 Subject: [PATCH] fixed incorrect computed prop being used reduced duplicated CSS --- .../ide/components/commit_sidebar/actions.vue | 2 +- .../ide/components/commit_sidebar/list.vue | 7 +++++-- app/assets/stylesheets/pages/repo.scss | 14 ++++---------- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/app/assets/javascripts/ide/components/commit_sidebar/actions.vue b/app/assets/javascripts/ide/components/commit_sidebar/actions.vue index a2763a45734..378c93b2e2e 100644 --- a/app/assets/javascripts/ide/components/commit_sidebar/actions.vue +++ b/app/assets/javascripts/ide/components/commit_sidebar/actions.vue @@ -45,7 +45,7 @@ export default { :value="$options.commitToNewBranchMR" :label="__('Create a new branch and merge request')" :show-input="true" - :disabled="!!changedFiles.length && !!changedFiles.length" + :disabled="!!changedFiles.length && !!stagedFiles.length" /> diff --git a/app/assets/javascripts/ide/components/commit_sidebar/list.vue b/app/assets/javascripts/ide/components/commit_sidebar/list.vue index a0cb4c16482..f6625fda596 100644 --- a/app/assets/javascripts/ide/components/commit_sidebar/list.vue +++ b/app/assets/javascripts/ide/components/commit_sidebar/list.vue @@ -61,6 +61,9 @@ export default { actionBtnClicked() { this[this.action](); }, + setShowActionButton(show) { + this.showActionButton = show; + }, }, }; @@ -83,14 +86,14 @@ export default { {{ titleText }} {{ fileList.length }}