Skip to content

Commit

Permalink
chore: Moves CRUD components to the Datasource component (#19032)
Browse files Browse the repository at this point in the history
* chore: Moves CRUD components to the Datasource component

* Fixes imports

* Fixes less import

(cherry picked from commit 71b8d31)
  • Loading branch information
michael-s-molina authored and villebro committed Apr 3, 2022
1 parent 1eac871 commit 4e78efc
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
import React from 'react';
import { shallow } from 'enzyme';

import CollectionTable from 'src/CRUD/CollectionTable';
import mockDatasource from 'spec/fixtures/mockDatasource';
import CollectionTable from './CollectionTable';

const props = {
collection: mockDatasource['7__table'].columns,
Expand Down
10 changes: 3 additions & 7 deletions superset-frontend/src/components/Datasource/DatasourceEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,17 @@ import Label from 'src/components/Label';
import Loading from 'src/components/Loading';
import TableSelector from 'src/components/TableSelector';
import EditableTitle from 'src/components/EditableTitle';

import { getClientErrorObject } from 'src/utils/getClientErrorObject';

import CheckboxControl from 'src/explore/components/controls/CheckboxControl';
import TextControl from 'src/explore/components/controls/TextControl';
import TextAreaControl from 'src/explore/components/controls/TextAreaControl';
import SpatialControl from 'src/explore/components/controls/SpatialControl';

import CollectionTable from 'src/CRUD/CollectionTable';
import Fieldset from 'src/CRUD/Fieldset';
import Field from 'src/CRUD/Field';

import withToasts from 'src/components/MessageToasts/withToasts';
import { FeatureFlag, isFeatureEnabled } from 'src/featureFlags';
import Icons from 'src/components/Icons';
import CollectionTable from './CollectionTable';
import Fieldset from './Fieldset';
import Field from './Field';

const DatasourceContainer = styled.div`
.change-warning {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
@import '../assets/stylesheets/less/variables.less';
@import '../../assets/stylesheets/less/variables.less';

.CRUD {
.text-right {
Expand Down
File renamed without changes.

0 comments on commit 4e78efc

Please sign in to comment.