Commit ff61c5a8 authored by Axel García's avatar Axel García

Enable gfm_form on new epic form

This is to enable suggestions on the description
field.
parent bacd3048
...@@ -46,10 +46,9 @@ class Groups::AutocompleteSourcesController < Groups::ApplicationController ...@@ -46,10 +46,9 @@ class Groups::AutocompleteSourcesController < Groups::ApplicationController
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
def target def target
case params[:type]&.downcase QuickActions::TargetService
when 'epic' .new(nil, current_user, group: @group)
EpicsFinder.new(current_user, group_id: @group.id).find_by(iid: params[:type_id]) .execute(params[:type], params[:type_id])
end
end end
# rubocop: enable CodeReuse/ActiveRecord # rubocop: enable CodeReuse/ActiveRecord
end end
- @gfm_form = true
- @noteable = Epic.new
- add_to_breadcrumbs _("Epics"), group_epics_path(@group) - add_to_breadcrumbs _("Epics"), group_epics_path(@group)
- breadcrumb_title _("New") - breadcrumb_title _("New")
- page_title _("New epic") - page_title _("New epic")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment