DashboardScene: First step to loading the current dashboard model and rendering it as a scene (#57012)

* Initial dashboard loading start

* loading dashboard works and shows something

* loading dashboard works and shows something

* Minor tweaks

* Add starred dashboards to scene list page

* Use new SceneGridLayout

* Allow switching directly from dashboard to a scene

* Migrate basic dashboard rows to scene based dashboard

* Review nit

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
This commit is contained in:
Torkel Ödegaard
2022-11-17 16:15:51 +01:00
committed by GitHub
parent c093a471e6
commit 0c4aa6d0d8
7 changed files with 302 additions and 8 deletions

View File

@@ -338,6 +338,16 @@ export const DashNav = React.memo<Props>((props) => {
buttons.push(renderTimeControls());
buttons.push(tvButton);
if (config.featureToggles.scenes) {
buttons.push(
<ToolbarButton
tooltip={'View as Scene'}
icon="apps"
onClick={() => locationService.push(`/scenes/dashboard/${dashboard.uid}`)}
/>
);
}
return buttons;
};