Commit 6c3cd5fa authored by Eulyeon Ko's avatar Eulyeon Ko

Apply 4 suggestion(s) to 1 file(s)

parent 7d91c944
- if Feature.enabled?(:vue_issuables_list, @project)
- data_endpoint = local_assigns.fetch(:data_endpoint, expose_url(api_v4_projects_issues_path(id: @project.id)))
- default_empty_state_meta = { create_issue_path: expose_url(new_project_issue_path(@project)), svg_path: image_path('illustrations/issues.svg') }
- data_endpoint = local_assigns.fetch(:data_endpoint, expose_path(api_v4_projects_issues_path(id: @project.id)))
- default_empty_state_meta = { create_issue_path: new_project_issue_path(@project), svg_path: image_path('illustrations/issues.svg') }
- data_empty_state_meta = local_assigns.fetch(:data_empty_state_meta, default_empty_state_meta)
- type = local_assigns.fetch(:type, '')
.js-issuables-list{ data: { endpoint: data_endpoint,
......
......@@ -7,7 +7,7 @@
- support_bot_attrs = { service_desk_enabled: @project.service_desk_enabled?, **UserSerializer.new.represent(User.support_bot) }.to_json
- data_endpoint = "#{expose_url(api_v4_projects_issues_path(id: @project.id))}?author_id=#{User.support_bot.id}"
- data_endpoint = "#{expose_path(api_v4_projects_issues_path(id: @project.id))}?author_id=#{User.support_bot.id}"
%div{ class: "js-service-desk-issues service-desk-issues", data: { support_bot: support_bot_attrs, service_desk_meta: service_desk_meta(@project) } }
.top-area
......
......@@ -4,7 +4,7 @@
= render 'shared/issuable/nav', type: :issues, display_count: false
= render 'projects/integrations/jira/issues/nav_btns'
.js-issuables-list{ data: { endpoint: expose_path(project_integrations_jira_issues_path(@project, format: :json)),
.js-issuables-list{ data: { endpoint: project_integrations_jira_issues_path(@project, format: :json),
'can-bulk-edit': false,
'empty-state-meta': { svg_path: image_path('illustrations/issues.svg') },
'sort-key': @sort,
......
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