[dashboard] remove loading spinner in missing chart holder (#9140)

This commit is contained in:
Grace Guo 2020-02-14 09:01:47 -08:00 committed by GitHub
parent f993bdc7ef
commit b0110a74e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 15 deletions

View File

@ -19,7 +19,6 @@
import React from 'react';
import { shallow } from 'enzyme';
import Loading from '../../../../src/components/Loading';
import MissingChart from '../../../../src/dashboard/components/MissingChart';
describe('MissingChart', () => {
@ -37,9 +36,4 @@ describe('MissingChart', () => {
const wrapper = setup();
expect(wrapper.find('.missing-chart-body')).toHaveLength(1);
});
it('renders a Loading', () => {
const wrapper = setup();
expect(wrapper.find(Loading)).toHaveLength(1);
});
});

View File

@ -20,8 +20,6 @@ import PropTypes from 'prop-types';
import React from 'react';
import { t } from '@superset-ui/translation';
import Loading from '../../components/Loading';
const propTypes = {
height: PropTypes.number.isRequired,
};
@ -29,9 +27,6 @@ const propTypes = {
export default function MissingChart({ height }) {
return (
<div className="missing-chart-container" style={{ height: height + 20 }}>
<div className="loading-container">
<Loading />
</div>
<div className="missing-chart-body">
{t(
'There is no chart definition associated with this component, could it have been deleted?',

View File

@ -29,14 +29,12 @@
flex-direction: column;
align-items: center;
overflow-y: auto;
justify-content: center;
.missing-chart-body {
font-size: @font-size-s;
}
.loading-container {
position: relative;
height: 40%;
display: flex;
}
}