mirror of
https://github.com/apache/superset.git
synced 2026-05-11 19:05:24 +00:00
chore: Feature flag for embedding charts (#20804)
* Add EMBEDDABLE_CHARTS feature flag * Pretty * Update test
This commit is contained in:
@@ -25,12 +25,17 @@ import fetchMock from 'fetch-mock';
|
||||
import * as chartAction from 'src/components/Chart/chartAction';
|
||||
import * as downloadAsImage from 'src/utils/downloadAsImage';
|
||||
import * as exploreUtils from 'src/explore/exploreUtils';
|
||||
import { FeatureFlag } from '@superset-ui/core';
|
||||
import ExploreHeader from '.';
|
||||
|
||||
const chartEndpoint = 'glob:*api/v1/chart/*';
|
||||
|
||||
fetchMock.get(chartEndpoint, { json: 'foo' });
|
||||
|
||||
window.featureFlags = {
|
||||
[FeatureFlag.EMBEDDABLE_CHARTS]: true,
|
||||
};
|
||||
|
||||
const createProps = () => ({
|
||||
chart: {
|
||||
id: 1,
|
||||
|
||||
Reference in New Issue
Block a user