diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-10-10 17:08:43 +0000 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2018-10-10 17:08:43 +0000 |
commit | a01897446075beac31719ff44a9d742d81ce785d (patch) | |
tree | f6d7ac285f95c938283ce4d11097e31c98be30e7 /app/assets/javascripts/boards/components/board_card.vue | |
parent | 62bd3045a3c0c3ad979f795ca891a7a641d4e478 (diff) | |
download | gitlab-ce-a01897446075beac31719ff44a9d742d81ce785d.tar.gz |
Convert remaining issue board components into ES module syntax
Diffstat (limited to 'app/assets/javascripts/boards/components/board_card.vue')
-rw-r--r-- | app/assets/javascripts/boards/components/board_card.vue | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/app/assets/javascripts/boards/components/board_card.vue b/app/assets/javascripts/boards/components/board_card.vue index 0398102ad02..843498f0d06 100644 --- a/app/assets/javascripts/boards/components/board_card.vue +++ b/app/assets/javascripts/boards/components/board_card.vue @@ -2,8 +2,7 @@ /* eslint-disable vue/require-default-prop */ import IssueCardInner from './issue_card_inner.vue'; import eventHub from '../eventhub'; - - const Store = gl.issueBoards.BoardsStore; + import boardsStore from '../stores/boards_store'; export default { name: 'BoardsIssueCard', @@ -42,7 +41,7 @@ data() { return { showDetail: false, - detailIssue: Store.detail, + detailIssue: boardsStore.detail, }; }, computed: { @@ -63,11 +62,11 @@ if (this.showDetail) { this.showDetail = false; - if (Store.detail.issue && Store.detail.issue.id === this.issue.id) { + if (boardsStore.detail.issue && boardsStore.detail.issue.id === this.issue.id) { eventHub.$emit('clearDetailIssue'); } else { eventHub.$emit('newDetailIssue', this.issue); - Store.detail.list = this.list; + boardsStore.detail.list = this.list; } } }, |