mirror of
https://github.com/apache/superset.git
synced 2026-04-22 01:24:43 +00:00
feat(explore): Fill dashboard name when adding new chart from dashboard view (#20129)
* feat(explore): Fill dashboard name when adding new chart from dashboard view * Update import paths * Update test * Fix test
This commit is contained in:
committed by
GitHub
parent
9646591d24
commit
3e3fbccdcb
@@ -150,6 +150,7 @@ class Tab extends React.PureComponent {
|
||||
isComponentVisible,
|
||||
canEdit,
|
||||
setEditMode,
|
||||
dashboardId,
|
||||
} = this.props;
|
||||
|
||||
const shouldDisplayEmptyState = tabComponent.children.length === 0;
|
||||
@@ -183,7 +184,7 @@ class Tab extends React.PureComponent {
|
||||
<span>
|
||||
{t('You can')}{' '}
|
||||
<a
|
||||
href="/chart/add"
|
||||
href={`/chart/add?dashboard_id=${dashboardId}`}
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user