diff options
author | Phil Hughes <me@iamphill.com> | 2017-06-01 16:54:10 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-06-01 16:54:10 +0300 |
commit | 8f5da962a363389c606d1f8427fcc36286ea2285 (patch) | |
tree | de010fb04a481a9b18ba09a3bb805d15eb765268 /app/assets/javascripts/boards | |
parent | 3a4b3a196ddaea1e20f770c551523c55d989a4ce (diff) |
fixed boards specs
added key to assignee avatar loop
Diffstat (limited to 'app/assets/javascripts/boards')
-rw-r--r-- | app/assets/javascripts/boards/boards_bundle.js | 2 | ||||
-rw-r--r-- | app/assets/javascripts/boards/components/issue_card_inner.js | 1 | ||||
-rw-r--r-- | app/assets/javascripts/boards/components/modal/footer.js | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/boards/boards_bundle.js b/app/assets/javascripts/boards/boards_bundle.js index 0e4aa39226b..c70a7084dc7 100644 --- a/app/assets/javascripts/boards/boards_bundle.js +++ b/app/assets/javascripts/boards/boards_bundle.js @@ -128,7 +128,7 @@ $(() => { }, computed: { disabled() { - return !this.store.lists.filter(list => list.type !== 'blank' && list.type !== 'done').length; + return !this.store.lists.filter(list => !list.preset).length; }, tooltipTitle() { if (this.disabled) { diff --git a/app/assets/javascripts/boards/components/issue_card_inner.js b/app/assets/javascripts/boards/components/issue_card_inner.js index 4699ef5a51c..daef01bc93d 100644 --- a/app/assets/javascripts/boards/components/issue_card_inner.js +++ b/app/assets/javascripts/boards/components/issue_card_inner.js @@ -152,6 +152,7 @@ gl.issueBoards.IssueCardInner = Vue.extend({ <div class="card-assignee"> <user-avatar-link v-for="(assignee, index) in issue.assignees" + :key="assignee.id" v-if="shouldRenderAssignee(index)" class="js-no-trigger" :link-href="assigneeUrl(assignee)" diff --git a/app/assets/javascripts/boards/components/modal/footer.js b/app/assets/javascripts/boards/components/modal/footer.js index fe7ab2db85d..096b9cb4b38 100644 --- a/app/assets/javascripts/boards/components/modal/footer.js +++ b/app/assets/javascripts/boards/components/modal/footer.js @@ -26,7 +26,7 @@ gl.issueBoards.ModalFooter = Vue.extend({ }, methods: { addIssues() { - const list = this.modal.selectedList || this.state.lists[0]; + const list = this.modal.selectedList || this.state.lists[1]; const selectedIssues = ModalStore.getSelectedIssues(); const issueIds = selectedIssues.map(issue => issue.globalId); |