mirror of
https://github.com/apache/superset.git
synced 2026-05-11 19:05:24 +00:00
feat: Shows related dashboards in Explore (#21685)
This commit is contained in:
committed by
GitHub
parent
0ff1e49e3c
commit
200bed6f7e
@@ -24,6 +24,8 @@ import { Tooltip } from 'src/components/Tooltip';
|
||||
import {
|
||||
CategoricalColorNamespace,
|
||||
css,
|
||||
FeatureFlag,
|
||||
isFeatureEnabled,
|
||||
logging,
|
||||
SupersetClient,
|
||||
t,
|
||||
@@ -149,6 +151,7 @@ export const ExploreChartHeader = ({
|
||||
actions.redirectSQLLab,
|
||||
openPropertiesModal,
|
||||
ownState,
|
||||
metadata?.dashboards,
|
||||
);
|
||||
|
||||
const metadataBar = useMemo(() => {
|
||||
@@ -162,6 +165,13 @@ export const ExploreChartHeader = ({
|
||||
metadata.dashboards.length > 0
|
||||
? t('Added to %s dashboard(s)', metadata.dashboards.length)
|
||||
: t('Not added to any dashboard'),
|
||||
description:
|
||||
metadata.dashboards.length > 0 &&
|
||||
isFeatureEnabled(FeatureFlag.CROSS_REFERENCES)
|
||||
? t(
|
||||
'You can preview the list of dashboards on the chart settings dropdown.',
|
||||
)
|
||||
: undefined,
|
||||
});
|
||||
items.push({
|
||||
type: MetadataType.LAST_MODIFIED,
|
||||
|
||||
Reference in New Issue
Block a user