mirror of
https://github.com/apache/superset.git
synced 2026-05-11 19:05:24 +00:00
chore: make TS enums strictly PascalCase (#26875)
This commit is contained in:
@@ -34,7 +34,7 @@ const chartEndpoint = 'glob:*api/v1/chart/*';
|
||||
fetchMock.get(chartEndpoint, { json: 'foo' });
|
||||
|
||||
window.featureFlags = {
|
||||
[FeatureFlag.EMBEDDABLE_CHARTS]: true,
|
||||
[FeatureFlag.EmbeddableCharts]: true,
|
||||
};
|
||||
|
||||
const createProps = (additionalProps = {}) => ({
|
||||
|
||||
@@ -179,7 +179,7 @@ export const ExploreChartHeader = ({
|
||||
}
|
||||
const items = [];
|
||||
items.push({
|
||||
type: MetadataType.DASHBOARDS,
|
||||
type: MetadataType.Dashboards,
|
||||
title:
|
||||
metadata.dashboards.length > 0
|
||||
? tn(
|
||||
@@ -197,19 +197,19 @@ export const ExploreChartHeader = ({
|
||||
: undefined,
|
||||
});
|
||||
items.push({
|
||||
type: MetadataType.LAST_MODIFIED,
|
||||
type: MetadataType.LastModified,
|
||||
value: metadata.changed_on_humanized,
|
||||
modifiedBy: metadata.changed_by || t('Not available'),
|
||||
});
|
||||
items.push({
|
||||
type: MetadataType.OWNER,
|
||||
type: MetadataType.Owner,
|
||||
createdBy: metadata.created_by || t('Not available'),
|
||||
owners: metadata.owners.length > 0 ? metadata.owners : t('None'),
|
||||
createdOn: metadata.created_on_humanized,
|
||||
});
|
||||
if (slice?.description) {
|
||||
items.push({
|
||||
type: MetadataType.DESCRIPTION,
|
||||
type: MetadataType.Description,
|
||||
value: slice?.description,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user