Commit 72ea8193 authored by Tetiana Chupryna's avatar Tetiana Chupryna

Rename expose license management method

parent 5a5b9ec3
......@@ -25,7 +25,7 @@ module EE
end
def licenses
report_exists = pipeline.expose_license_management_data?
report_exists = pipeline.expose_license_scanning_data?
respond_to do |format|
if report_exists
......
......@@ -121,7 +121,7 @@ module EE
job_artifacts.where(file_type: ::Ci::JobArtifact.file_types[file_type]).last
end
def expose_license_management_data?
def expose_license_scanning_data?
any_report_artifact_for_type(:license_management)
end
......
......@@ -36,7 +36,7 @@
create_vulnerability_feedback_merge_request_path: create_vulnerability_feedback_merge_request_path(project),
create_vulnerability_feedback_dismissal_path: create_vulnerability_feedback_dismissal_path(project) } }
- if pipeline.expose_license_management_data?
- if pipeline.expose_license_scanning_data?
#js-tab-licenses.tab-pane
#js-licenses-app{ data: { license_head_path: pipeline.downloadable_path_for_report_type(:license_management),
api_url: license_management_api_url(project),
......
......@@ -7,7 +7,7 @@
= _("Security")
%span.badge.badge-pill.js-security-counter.hidden{ 'data-qa-selector': 'security_counter' }
- if pipeline.expose_license_management_data?
- if pipeline.expose_license_scanning_data?
%li.js-licenses-tab-link
= link_to licenses_project_pipeline_path(project, pipeline), data: { target: '#js-tab-licenses', action: 'licenses', toggle: 'tab' }, class: 'licenses-tab' do
= _("Licenses")
......
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