Commit 69766632 authored by Scott Hampton's avatar Scott Hampton

Merge branch 'remove-unused-svg-from-threat-monitoring' into 'master'

Remove unused chart svg from threat monitoring

See merge request gitlab-org/gitlab!51759
parents 5aa13a37 7fa0cb7c
...@@ -32,10 +32,6 @@ export default { ...@@ -32,10 +32,6 @@ export default {
type: Number, type: Number,
required: true, required: true,
}, },
chartEmptyStateSvgPath: {
type: String,
required: true,
},
wafNoDataSvgPath: { wafNoDataSvgPath: {
type: String, type: String,
required: true, required: true,
......
...@@ -18,7 +18,6 @@ export default () => { ...@@ -18,7 +18,6 @@ export default () => {
networkPolicyStatisticsEndpoint, networkPolicyStatisticsEndpoint,
environmentsEndpoint, environmentsEndpoint,
networkPoliciesEndpoint, networkPoliciesEndpoint,
chartEmptyStateSvgPath,
emptyStateSvgPath, emptyStateSvgPath,
wafNoDataSvgPath, wafNoDataSvgPath,
networkPolicyNoDataSvgPath, networkPolicyNoDataSvgPath,
...@@ -53,7 +52,6 @@ export default () => { ...@@ -53,7 +52,6 @@ export default () => {
render(createElement) { render(createElement) {
return createElement(ThreatMonitoringApp, { return createElement(ThreatMonitoringApp, {
props: { props: {
chartEmptyStateSvgPath,
wafNoDataSvgPath, wafNoDataSvgPath,
networkPolicyNoDataSvgPath, networkPolicyNoDataSvgPath,
defaultEnvironmentId: parseInt(defaultEnvironmentId, 10), defaultEnvironmentId: parseInt(defaultEnvironmentId, 10),
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
- default_environment_id = @project.default_environment&.id || -1 - 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/', #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'), 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'), 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'), 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'; ...@@ -14,7 +14,6 @@ import axios from '~/lib/utils/axios_utils';
const defaultEnvironmentId = 3; const defaultEnvironmentId = 3;
const documentationPath = '/docs'; const documentationPath = '/docs';
const newPolicyPath = '/policy/new'; const newPolicyPath = '/policy/new';
const chartEmptyStateSvgPath = '/chart-svgs';
const emptyStateSvgPath = '/svgs'; const emptyStateSvgPath = '/svgs';
const wafNoDataSvgPath = '/waf-no-data-svg'; const wafNoDataSvgPath = '/waf-no-data-svg';
const networkPolicyNoDataSvgPath = '/network-policy-no-data-svg'; const networkPolicyNoDataSvgPath = '/network-policy-no-data-svg';
...@@ -43,7 +42,6 @@ describe('ThreatMonitoringApp component', () => { ...@@ -43,7 +42,6 @@ describe('ThreatMonitoringApp component', () => {
shallowMount(ThreatMonitoringApp, { shallowMount(ThreatMonitoringApp, {
propsData: { propsData: {
defaultEnvironmentId, defaultEnvironmentId,
chartEmptyStateSvgPath,
emptyStateSvgPath, emptyStateSvgPath,
wafNoDataSvgPath, wafNoDataSvgPath,
networkPolicyNoDataSvgPath, 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