From f35ad61be174c060630c2c54e4b5de4902fb39b7 Mon Sep 17 00:00:00 2001 From: Rajat Jain Date: Mon, 22 Apr 2019 11:24:23 +0530 Subject: Add Epics in issuable list when EE Create a method in LabelsHelper which returns the correct list of `issuable_types` to the view. --- app/helpers/labels_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/helpers/labels_helper.rb') 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 -- cgit v1.2.1