Commit 29b64824 authored by Alexander Turinske's avatar Alexander Turinske

Update documentation path to be on the frontend

- move documentation path creation to the frontend now that
  there is a frontend helper
parent 0cb6ffb7
......@@ -9,13 +9,7 @@ export default () => {
return null;
}
const {
activityEmptyStateImage,
agentName,
dashboardDocumentation,
emptyStateSvgPath,
projectPath,
} = el.dataset;
const { activityEmptyStateImage, agentName, emptyStateSvgPath, projectPath } = el.dataset;
return new Vue({
el,
......@@ -23,7 +17,6 @@ export default () => {
provide: {
activityEmptyStateImage,
agentName,
dashboardDocumentation,
emptyStateSvgPath,
projectPath,
},
......
......@@ -5,7 +5,6 @@ module Projects::ClusterAgentsHelper
{
activity_empty_state_image: image_path('illustrations/empty-state/empty-state-agents.svg'),
agent_name: agent_name,
dashboard_documentation: help_page_path('user/application_security/security_dashboard/index'),
empty_state_svg_path: image_path('illustrations/operations-dashboard_empty.svg'),
project_path: project.full_path
}
......
<script>
import { helpPagePath } from '~/helpers/help_page_helper';
import VulnerabilityListGraphql from '../shared/vulnerability_report/vulnerability_list_graphql.vue';
import VulnerabilityFilters from '../shared/vulnerability_report/vulnerability_filters.vue';
import {
......@@ -17,6 +18,7 @@ export default {
},
provide() {
return {
dashboardDocumentation: helpPagePath('user/application_security/security_dashboard/index'),
dashboardType: DASHBOARD_TYPES.PROJECT,
canAdminVulnerability: true,
fullPath: this.projectPath,
......
......@@ -20,7 +20,6 @@ RSpec.describe Projects::ClusterAgentsHelper do
it 'returns string contants' do
expect(subject[:activity_empty_state_image]).to be_kind_of(String)
expect(subject[:dashboard_documentation]).to be_kind_of(String)
expect(subject[:empty_state_svg_path]).to be_kind_of(String)
end
end
......
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