Commit 33eb6de8 authored by Adam Alvis's avatar Adam Alvis

renamed dashboard empty state to dashboard_not_configured

parent 759ad2d9
......@@ -11,7 +11,7 @@ import projectsQuery from 'ee/security_dashboard/graphql/get_instance_security_d
import ProjectManager from './first_class_project_manager/project_manager.vue';
import CsvExportButton from './csv_export_button.vue';
import vulnerabilityHistoryQuery from '../graphql/instance_vulnerability_history.graphql';
import EmptyState from './empty_states/first_class_instance_security_dashboard.vue';
import DashboardNotConfigured from './empty_states/dashboard_not_configured.vue';
export default {
components: {
......@@ -24,7 +24,7 @@ export default {
Filters,
GlLoadingIcon,
GlButton,
EmptyState,
DashboardNotConfigured,
},
props: {
dashboardDocumentation: {
......@@ -129,7 +129,7 @@ export default {
:filters="filters"
/>
<div v-else-if="shouldShowEmptyState">
<empty-state
<dashboard-not-configured
:svg-path="emptyStateSvgPath"
:dashboard-documentation="dashboardDocumentation"
@handleAddProjectsClick="toggleProjectSelector"
......
import { mount } from '@vue/test-utils';
import { GlEmptyState, GlButton, GlLink } from '@gitlab/ui';
import EmptyState from 'ee/security_dashboard/components/empty_states/first_class_instance_security_dashboard.vue';
import DashboardNotConfigured from 'ee/security_dashboard/components/empty_states/dashboard_not_configured.vue';
describe('first class instance security dashboard empty state', () => {
let wrapper;
......@@ -8,7 +8,7 @@ describe('first class instance security dashboard empty state', () => {
const svgPath = '/placeholder.svg';
const createWrapper = () =>
mount(EmptyState, {
mount(DashboardNotConfigured, {
propsData: { svgPath, dashboardDocumentation },
});
const findGlEmptyState = () => wrapper.find(GlEmptyState);
......
......@@ -8,7 +8,7 @@ import VulnerabilityChart from 'ee/security_dashboard/components/first_class_vul
import CsvExportButton from 'ee/security_dashboard/components/csv_export_button.vue';
import Filters from 'ee/security_dashboard/components/first_class_vulnerability_filters.vue';
import ProjectManager from 'ee/security_dashboard/components/first_class_project_manager/project_manager.vue';
import EmptyState from 'ee/security_dashboard/components/empty_states/first_class_instance_security_dashboard.vue';
import DashboardNotConfigured from 'ee/security_dashboard/components/empty_states/dashboard_not_configured.vue';
describe('First Class Instance Dashboard Component', () => {
let wrapper;
......@@ -25,7 +25,7 @@ describe('First Class Instance Dashboard Component', () => {
const findVulnerabilityChart = () => wrapper.find(VulnerabilityChart);
const findCsvExportButton = () => wrapper.find(CsvExportButton);
const findProjectManager = () => wrapper.find(ProjectManager);
const findEmptyState = () => wrapper.find(EmptyState);
const findEmptyState = () => wrapper.find(DashboardNotConfigured);
const findFilters = () => wrapper.find(Filters);
const createWrapper = ({ data = {}, stubs }) => {
......@@ -103,7 +103,7 @@ describe('First Class Instance Dashboard Component', () => {
data: {
isManipulatingProjects: false,
stubs: {
EmptyState,
DashboardNotConfigured,
GlButton,
},
},
......
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