diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-07-07 16:04:43 +0100 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-07-07 16:05:17 +0100 |
commit | f28cd19dde32ab62cc3543d3579fc416d5976aed (patch) | |
tree | 0e8e0323fbda001255e6aec578a60572e50523a3 /app/assets/javascripts/issue.js | |
parent | c7f23e2564880a9742b3f428dcde567852e75212 (diff) | |
download | gitlab-ce-f28cd19dde32ab62cc3543d3579fc416d5976aed.tar.gz |
Fix MR and issue specs
Diffstat (limited to 'app/assets/javascripts/issue.js')
-rw-r--r-- | app/assets/javascripts/issue.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/issue.js b/app/assets/javascripts/issue.js index 912da6ed6c1..f5e97e6e384 100644 --- a/app/assets/javascripts/issue.js +++ b/app/assets/javascripts/issue.js @@ -6,7 +6,7 @@ import '~/lib/utils/text_utility'; import './flash'; import './task_list'; import CreateMergeRequestDropdown from './create_merge_request_dropdown'; -import initCloseReopenReport from './helpers/issuables_helper'; +import IssuablesHelper from './helpers/issuables_helper'; class Issue { constructor() { @@ -98,10 +98,10 @@ class Issue { } initCloseReopenReport() { - this.closeReopenReportToggle = initCloseReopenReport(); + this.closeReopenReportToggle = IssuablesHelper.initCloseReopenReport(); - this.closeButtons = this.closeButtons.not('.issuable-close-button'); - this.reopenButtons = this.reopenButtons.not('.issuable-close-button'); + if (this.closeButtons) this.closeButtons = this.closeButtons.not('.issuable-close-button'); + if (this.reopenButtons) this.reopenButtons = this.reopenButtons.not('.issuable-close-button'); } disableCloseReopenButton($button, shouldDisable) { |