mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
TopNav: Panel edit changes (#54746)
* Progress * Progress * Things are working * More tweaks * Fixing unit test * Tweaks and fixing e2e tests * Remove ... in Save as * Fixing unit test * Fixing e2e test * Fixes Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
@@ -46,12 +46,19 @@ export function DashboardSettings({ dashboard, editview, pageNav, sectionNav }:
|
||||
const location = useLocation();
|
||||
const editIndex = getEditIndex(location);
|
||||
const subSectionNav = getSectionNav(pageNav, sectionNav, pages, currentPage, location);
|
||||
const size = config.featureToggles.topnav ? 'sm' : 'md';
|
||||
|
||||
const actions = [
|
||||
canSaveAs && (
|
||||
<SaveDashboardAsButton dashboard={dashboard} onSaveSuccess={onPostSave} variant="secondary" key="save as" />
|
||||
<SaveDashboardAsButton
|
||||
dashboard={dashboard}
|
||||
onSaveSuccess={onPostSave}
|
||||
variant="secondary"
|
||||
key="save as"
|
||||
size={size}
|
||||
/>
|
||||
),
|
||||
canSave && <SaveDashboardButton dashboard={dashboard} onSaveSuccess={onPostSave} key="Save" />,
|
||||
canSave && <SaveDashboardButton dashboard={dashboard} onSaveSuccess={onPostSave} key="Save" size={size} />,
|
||||
];
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user