diff options
author | Rajat Jain <rjain@gitlab.com> | 2019-04-22 11:24:23 +0530 |
---|---|---|
committer | Rajat Jain <rjain@gitlab.com> | 2019-04-24 15:37:53 +0530 |
commit | 7804604687b4f2791174d495dbf61b3a568df36a (patch) | |
tree | 963638378c34942d8599772a7fe1116578ff3ab0 /app/helpers | |
parent | 10bf3bbc904c96d5d7633f58cb93cf6927e18c8e (diff) | |
download | gitlab-ce-7804604687b4f2791174d495dbf61b3a568df36a.tar.gz |
Add Epics in issuable list when EE
Create a method in LabelsHelper which returns the correct
list of `issuable_types` to the view.
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/labels_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/labels_helper.rb b/app/helpers/labels_helper.rb index a07c3f90a91..e7eb57d21f6 100644 --- a/app/helpers/labels_helper.rb +++ b/app/helpers/labels_helper.rb @@ -276,6 +276,10 @@ module LabelsHelper klass.new(hash.slice(:color, :description, :title, :group_id, :project_id)) end + def issuable_types + ['issues', 'merge requests'] + end + # Required for Banzai::Filter::LabelReferenceFilter module_function :render_colored_label, :text_color_for_bg, :escape_once, :label_tooltip_title end |