Commit 7e6135e8 authored by mo khan's avatar mo khan

Move dependencies/show to dependencies/index

* Remove the extra ".json" from the download endpoint
parent 9ae2ab3a
...@@ -9,4 +9,5 @@ export const isJobFailed = state => ...@@ -9,4 +9,5 @@ export const isJobFailed = state =>
[REPORT_STATUS.jobFailed, REPORT_STATUS.noDependencies].includes(state.reportInfo.status); [REPORT_STATUS.jobFailed, REPORT_STATUS.noDependencies].includes(state.reportInfo.status);
export const isIncomplete = state => state.reportInfo.status === REPORT_STATUS.incomplete; export const isIncomplete = state => state.reportInfo.status === REPORT_STATUS.incomplete;
export const downloadEndpoint = ({ endpoint }) => `${endpoint}.json`; export const downloadEndpoint = ({ endpoint }) =>
endpoint.endsWith('.json') ? endpoint : `${endpoint}.json`;
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
%span= _('Security Dashboard') %span= _('Security Dashboard')
- if project_nav_tab?(:dependencies) - if project_nav_tab?(:dependencies)
= nav_link(path: 'projects/dependencies#show') do = nav_link(path: 'projects/dependencies#index') do
= link_to project_dependencies_path(@project), title: _('Dependency List'), data: { qa_selector: 'dependency_list_link' } do = link_to project_dependencies_path(@project), title: _('Dependency List'), data: { qa_selector: 'dependency_list_link' } do
%span= _('Dependency List') %span= _('Dependency List')
......
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