mirror of
https://github.com/apache/superset.git
synced 2026-04-26 11:34:27 +00:00
chore(DatasourceEditor): Create Datasource Legacy Editor Feature Flag (#18003)
* a lot of console logs * adding new feature flag for datasource editor
This commit is contained in:
@@ -183,6 +183,10 @@ const DatasourceModal: FunctionComponent<DatasourceModalProps> = ({
|
||||
});
|
||||
};
|
||||
|
||||
const showLegacyDatasourceEditor =
|
||||
isFeatureEnabled(FeatureFlag.ENABLE_REACT_CRUD_VIEWS) &&
|
||||
!isFeatureEnabled(FeatureFlag.DISABLE_LEGACY_DATASOURCE_EDITOR);
|
||||
|
||||
return (
|
||||
<StyledDatasourceModal
|
||||
show={show}
|
||||
@@ -195,7 +199,7 @@ const DatasourceModal: FunctionComponent<DatasourceModalProps> = ({
|
||||
}
|
||||
footer={
|
||||
<>
|
||||
{isFeatureEnabled(FeatureFlag.ENABLE_REACT_CRUD_VIEWS) && (
|
||||
{showLegacyDatasourceEditor && (
|
||||
<Button
|
||||
buttonSize="small"
|
||||
buttonStyle="default"
|
||||
|
||||
Reference in New Issue
Block a user