Commit 7fa0cb7c authored by Alexander Turinske's avatar Alexander Turinske

Remove unused chart svg from threat monitoring

- remove all reference to it
- remove svg data in template
parent 50b64375
......@@ -32,10 +32,6 @@ export default {
type: Number,
required: true,
},
chartEmptyStateSvgPath: {
type: String,
required: true,
},
wafNoDataSvgPath: {
type: String,
required: true,
......
......@@ -18,7 +18,6 @@ export default () => {
networkPolicyStatisticsEndpoint,
environmentsEndpoint,
networkPoliciesEndpoint,
chartEmptyStateSvgPath,
emptyStateSvgPath,
wafNoDataSvgPath,
networkPolicyNoDataSvgPath,
......@@ -53,7 +52,6 @@ export default () => {
render(createElement) {
return createElement(ThreatMonitoringApp, {
props: {
chartEmptyStateSvgPath,
wafNoDataSvgPath,
networkPolicyNoDataSvgPath,
defaultEnvironmentId: parseInt(defaultEnvironmentId, 10),
......
......@@ -4,7 +4,6 @@
- default_environment_id = @project.default_environment&.id || -1
#js-threat-monitoring-app{ data: { documentation_path: 'https://docs.gitlab.com/ee/user/application_security/threat_monitoring/',
chart_empty_state_svg_path: image_path('illustrations/chart-empty-state.svg'),
empty_state_svg_path: image_path('illustrations/monitoring/unable_to_connect.svg'),
waf_no_data_svg_path: image_path('illustrations/firewall-not-detected-sm.svg'),
network_policy_no_data_svg_path: image_path('illustrations/network-policies-not-detected-sm.svg'),
......
......@@ -14,7 +14,6 @@ import axios from '~/lib/utils/axios_utils';
const defaultEnvironmentId = 3;
const documentationPath = '/docs';
const newPolicyPath = '/policy/new';
const chartEmptyStateSvgPath = '/chart-svgs';
const emptyStateSvgPath = '/svgs';
const wafNoDataSvgPath = '/waf-no-data-svg';
const networkPolicyNoDataSvgPath = '/network-policy-no-data-svg';
......@@ -43,7 +42,6 @@ describe('ThreatMonitoringApp component', () => {
shallowMount(ThreatMonitoringApp, {
propsData: {
defaultEnvironmentId,
chartEmptyStateSvgPath,
emptyStateSvgPath,
wafNoDataSvgPath,
networkPolicyNoDataSvgPath,
......
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