From 103c78f18c0642c36a6093508707b82eb8d1dd77 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Tue, 31 Jan 2017 14:35:53 +0000 Subject: [PATCH] Removes labels instead of closing issue when clicking remove button --- .../javascripts/boards/boards_bundle.js.es6 | 3 ++- .../components/modal/empty_state.js.es6 | 2 +- .../boards/components/modal/footer.js.es6 | 10 ++-------- .../boards/components/modal/header.js.es6 | 2 +- .../boards/components/modal/index.js.es6 | 5 +++-- .../components/sidebar/remove_issue.js.es6 | 13 +++++++++++-- .../boards/services/board_service.js.es6 | 19 +++++++++++++++++-- app/helpers/boards_helper.rb | 1 + app/views/projects/boards/_show.html.haml | 1 - 9 files changed, 38 insertions(+), 18 deletions(-) diff --git a/app/assets/javascripts/boards/boards_bundle.js.es6 b/app/assets/javascripts/boards/boards_bundle.js.es6 index 1cce580df79..81df823cad1 100644 --- a/app/assets/javascripts/boards/boards_bundle.js.es6 +++ b/app/assets/javascripts/boards/boards_bundle.js.es6 @@ -45,6 +45,7 @@ $(() => { disabled: $boardApp.dataset.disabled === 'true', issueLinkBase: $boardApp.dataset.issueLinkBase, rootPath: $boardApp.dataset.rootPath, + bulkUpdatePath: $boardApp.dataset.bulkUpdatePath, detailIssue: Store.detail }, computed: { @@ -53,7 +54,7 @@ $(() => { }, }, created () { - gl.boardService = new BoardService(this.endpoint, this.boardId); + gl.boardService = new BoardService(this.endpoint, this.bulkUpdatePath, this.boardId); }, mounted () { Store.disabled = this.disabled; diff --git a/app/assets/javascripts/boards/components/modal/empty_state.js.es6 b/app/assets/javascripts/boards/components/modal/empty_state.js.es6 index c5137d966e2..93d250e07f5 100644 --- a/app/assets/javascripts/boards/components/modal/empty_state.js.es6 +++ b/app/assets/javascripts/boards/components/modal/empty_state.js.es6 @@ -44,7 +44,7 @@ :href="newIssuePath" class="btn btn-success btn-inverted" v-if="activeTab === 'all'"> - Create issue + New issue