From 091b846ebebc5908b8f09b5fb1319546f7184ec4 Mon Sep 17 00:00:00 2001 From: Bob Van Landuyt Date: Thu, 9 Mar 2017 18:27:51 +0100 Subject: Renamed `.js.es6` to `.js` --- .../components/new_issue_for_discussion.js | 29 ++++++++++++++++++++++ .../components/new_issue_for_discussion.js.es6 | 29 ---------------------- 2 files changed, 29 insertions(+), 29 deletions(-) create mode 100644 app/assets/javascripts/diff_notes/components/new_issue_for_discussion.js delete mode 100644 app/assets/javascripts/diff_notes/components/new_issue_for_discussion.js.es6 (limited to 'app/assets/javascripts/diff_notes/components') diff --git a/app/assets/javascripts/diff_notes/components/new_issue_for_discussion.js b/app/assets/javascripts/diff_notes/components/new_issue_for_discussion.js new file mode 100644 index 00000000000..e86bef47172 --- /dev/null +++ b/app/assets/javascripts/diff_notes/components/new_issue_for_discussion.js @@ -0,0 +1,29 @@ +/* global Vue */ +/* global CommentsStore */ + +(() => { + const NewIssueForDiscussion = Vue.extend({ + props: { + discussionId: { + type: String, + required: true, + }, + }, + data() { + return { + discussions: CommentsStore.state, + }; + }, + computed: { + discussion() { + return this.discussions[this.discussionId]; + }, + showButton() { + if (this.discussion) return !this.discussion.isResolved(); + return false; + }, + }, + }); + + Vue.component('new-issue-for-discussion-btn', NewIssueForDiscussion); +})(); diff --git a/app/assets/javascripts/diff_notes/components/new_issue_for_discussion.js.es6 b/app/assets/javascripts/diff_notes/components/new_issue_for_discussion.js.es6 deleted file mode 100644 index e86bef47172..00000000000 --- a/app/assets/javascripts/diff_notes/components/new_issue_for_discussion.js.es6 +++ /dev/null @@ -1,29 +0,0 @@ -/* global Vue */ -/* global CommentsStore */ - -(() => { - const NewIssueForDiscussion = Vue.extend({ - props: { - discussionId: { - type: String, - required: true, - }, - }, - data() { - return { - discussions: CommentsStore.state, - }; - }, - computed: { - discussion() { - return this.discussions[this.discussionId]; - }, - showButton() { - if (this.discussion) return !this.discussion.isResolved(); - return false; - }, - }, - }); - - Vue.component('new-issue-for-discussion-btn', NewIssueForDiscussion); -})(); -- cgit v1.2.1