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:
Kamil Gabryjelski
2022-05-31 18:11:02 +02:00
committed by GitHub
parent 9646591d24
commit 3e3fbccdcb
12 changed files with 50 additions and 12 deletions

View File

@@ -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"
>