DashboardScene: Panel edit route basics (#74081)

* DashboardScene: Panel edit route basics

* remove unused file

* Removed some comments

* Minor fix

* Update

* example of apply changes implementation

* SceneObjectRef: Testing scene object ref

* Rename to ref suffix

* Update

* Fix url sync in panel edit

* Update

* Update

* simplify logic when committing change

* remove import

* Another fix for committing change
This commit is contained in:
Torkel Ödegaard
2023-09-11 13:51:05 +02:00
committed by GitHub
parent b9c681e1a7
commit 499b02b3c6
16 changed files with 477 additions and 55 deletions

View File

@@ -1,6 +1,6 @@
import { AppEvents } from '@grafana/data';
import { locationService } from '@grafana/runtime';
import { SceneObjectUrlSyncHandler, SceneObjectUrlValues } from '@grafana/scenes';
import { SceneObjectRef, SceneObjectUrlSyncHandler, SceneObjectUrlValues } from '@grafana/scenes';
import appEvents from 'app/core/app_events';
import { PanelInspectDrawer } from '../inspect/PanelInspectDrawer';
@@ -34,7 +34,7 @@ export class DashboardSceneUrlSync implements SceneObjectUrlSyncHandler {
}
update.inspectPanelKey = values.inspect;
update.drawer = new PanelInspectDrawer(panel);
update.drawer = new PanelInspectDrawer({ panelRef: new SceneObjectRef(panel) });
} else if (inspectPanelId) {
update.inspectPanelKey = undefined;
update.drawer = undefined;