diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-21 07:08:36 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-21 07:08:36 +0000 |
commit | 48aff82709769b098321c738f3444b9bdaa694c6 (patch) | |
tree | e00c7c43e2d9b603a5a6af576b1685e400410dee /app/helpers/projects/incidents_helper.rb | |
parent | 879f5329ee916a948223f8f43d77fba4da6cd028 (diff) | |
download | gitlab-ce-48aff82709769b098321c738f3444b9bdaa694c6.tar.gz |
Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.0-rc42
Diffstat (limited to 'app/helpers/projects/incidents_helper.rb')
-rw-r--r-- | app/helpers/projects/incidents_helper.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/helpers/projects/incidents_helper.rb b/app/helpers/projects/incidents_helper.rb index e96f0f5a384..63504cb55b9 100644 --- a/app/helpers/projects/incidents_helper.rb +++ b/app/helpers/projects/incidents_helper.rb @@ -1,14 +1,17 @@ # frozen_string_literal: true module Projects::IncidentsHelper - def incidents_data(project) + def incidents_data(project, params) { 'project-path' => project.full_path, 'new-issue-path' => new_project_issue_path(project), 'incident-template-name' => 'incident', 'incident-type' => 'incident', 'issue-path' => project_issues_path(project), - 'empty-list-svg-path' => image_path('illustrations/incident-empty-state.svg') + 'empty-list-svg-path' => image_path('illustrations/incident-empty-state.svg'), + 'text-query': params[:search], + 'author-username-query': params[:author_username], + 'assignee-username-query': params[:assignee_username] } end end |