Navigation: Add close button to dashboard settings (#61366)

This commit is contained in:
Joao Silva
2023-01-13 11:50:35 +01:00
committed by GitHub
parent 2baf967ff1
commit cdd0a2d228

View File

@@ -58,6 +58,11 @@ export function DashboardSettings({ dashboard, editview, pageNav, sectionNav }:
const size = config.featureToggles.topnav ? 'sm' : 'md';
const actions = [
config.featureToggles.topnav && (
<Button variant="secondary" key="close" fill="outline" size={size} onClick={onClose}>
Close
</Button>
),
canSaveAs && (
<SaveDashboardAsButton
dashboard={dashboard}