Dashboard: Fixes open panel edit button (#103169)
* Dashboard: Fixes open panel edit button * fix imports
This commit is contained in:
@@ -17,7 +17,6 @@ import { BulkActionElement } from '../scene/types/BulkActionElement';
|
||||
import { isDashboardLayoutItem } from '../scene/types/DashboardLayoutItem';
|
||||
import { EditableDashboardElement, EditableDashboardElementInfo } from '../scene/types/EditableDashboardElement';
|
||||
import { dashboardSceneGraph } from '../utils/dashboardSceneGraph';
|
||||
import { getEditPanelUrl } from '../utils/urlBuilders';
|
||||
import { getDashboardSceneFor, getPanelIdForVizPanel } from '../utils/utils';
|
||||
|
||||
import { MultiSelectedVizPanelsEditableElement } from './MultiSelectedVizPanelsEditableElement';
|
||||
@@ -114,7 +113,7 @@ const OpenPanelEditViz = ({ panel }: OpenPanelEditVizProps) => {
|
||||
<Stack alignItems="center" width="100%">
|
||||
<Button
|
||||
onClick={() => {
|
||||
locationService.push(getEditPanelUrl(getPanelIdForVizPanel(panel)));
|
||||
locationService.partial({ editPanel: getPanelIdForVizPanel(panel) });
|
||||
}}
|
||||
icon="sliders-v-alt"
|
||||
fullWidth
|
||||
|
||||
Reference in New Issue
Block a user