Commit be6efa88 authored by Savas Vedova's avatar Savas Vedova Committed by Mark Florian

Add vulnerability report link to navigation

- The link is hidden for now. It will be added
  back when the new chart is included.
parent 1bc00204
import initFirstClassSecurityDashboard from 'ee/security_dashboard/first_class_init';
import { DASHBOARD_TYPES } from 'ee/security_dashboard/store/constants';
document.addEventListener('DOMContentLoaded', () => {
initFirstClassSecurityDashboard(
document.getElementById('js-security-report-app'),
DASHBOARD_TYPES.PROJECT,
);
});
# frozen_string_literal: true
module Projects
module Security
class VulnerabilityReportController < Projects::ApplicationController
include SecurityDashboardsPermissions
feature_category :vulnerability_management
alias_method :vulnerable, :project
before_action only: [:index] do
push_frontend_feature_flag(:security_auto_fix, project)
end
end
end
end
- breadcrumb_title _("Vulnerability Report")
- page_title _("Vulnerability Report")
#js-security-report-app{ data: project_security_dashboard_config(@project) }
......@@ -55,6 +55,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
end
resources :dashboard, only: [:index], controller: :dashboard
resources :vulnerability_report, only: [:index], controller: :vulnerability_report
resource :configuration, only: [:show], controller: :configuration do
post :auto_fix, on: :collection
......
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