mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
SceneDashboard: Move time controls from nav toolbar into controls and make controls them sticky, and edit mode (#71082)
* Scene with sticky controls * Progress on an edit mode
This commit is contained in:
@@ -196,6 +196,17 @@ export const DashNav = React.memo<Props>((props) => {
|
||||
);
|
||||
}
|
||||
|
||||
if (config.featureToggles.scenes) {
|
||||
buttons.push(
|
||||
<DashNavButton
|
||||
key="button-scenes"
|
||||
tooltip={'View as Scene'}
|
||||
icon="apps"
|
||||
onClick={() => locationService.push(`/scenes/dashboard/${dashboard.uid}`)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
addCustomContent(customLeftActions, buttons);
|
||||
return buttons;
|
||||
};
|
||||
@@ -310,16 +321,6 @@ export const DashNav = React.memo<Props>((props) => {
|
||||
|
||||
buttons.push(renderTimeControls());
|
||||
|
||||
if (config.featureToggles.scenes) {
|
||||
buttons.push(
|
||||
<ToolbarButton
|
||||
key="button-scenes"
|
||||
tooltip={'View as Scene'}
|
||||
icon="apps"
|
||||
onClick={() => locationService.push(`/scenes/dashboard/${dashboard.uid}`)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
return buttons;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user