From 2d5e47bfc3c6c9a77dbb61694cd65c18f45a11cc Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Tue, 12 Jun 2018 17:05:45 +0100 Subject: Improve commit flow in Web IDE Closes #46122 --- .../ide/components/commit_sidebar/list.vue | 56 ++++++++++++---------- .../ide/components/commit_sidebar/list_item.vue | 9 +++- .../ide/components/commit_sidebar/stage_button.vue | 20 ++++++-- .../ide/components/repo_commit_section.vue | 12 +++-- app/assets/stylesheets/pages/repo.scss | 17 +------ 5 files changed, 64 insertions(+), 50 deletions(-) diff --git a/app/assets/javascripts/ide/components/commit_sidebar/list.vue b/app/assets/javascripts/ide/components/commit_sidebar/list.vue index 3d59410cbc2..72c02d1584f 100644 --- a/app/assets/javascripts/ide/components/commit_sidebar/list.vue +++ b/app/assets/javascripts/ide/components/commit_sidebar/list.vue @@ -34,6 +34,10 @@ export default { type: String, required: true, }, + actionBtnIcon: { + type: String, + required: true, + }, itemActionComponent: { type: String, required: true, @@ -53,11 +57,6 @@ export default { required: true, }, }, - data() { - return { - showActionButton: false, - }; - }, computed: { titleText() { return sprintf(__('%{title} changes'), { @@ -70,9 +69,6 @@ export default { actionBtnClicked() { this[this.action](); }, - setShowActionButton(show) { - this.showActionButton = show; - }, }, }; @@ -83,8 +79,6 @@ export default { >
{{ titleText }} - - {{ fileList.length }} - - +
+ + + {{ fileList.length }} + +