mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboard: Fixes save modal rendered ontop of save drawer (#46916)
* Dashboard: Fixes save modal rendered ontop of save drawer * removed commented line * Simplified dismiss -> hideModal mapping * Fixed issue with new dashboard * Fixing issues
This commit is contained in:
@@ -51,8 +51,9 @@ export const SaveDashboardForm = ({
|
||||
dashboard.resetOriginalTime();
|
||||
}
|
||||
onSuccess();
|
||||
} else {
|
||||
setSaving(false);
|
||||
}
|
||||
setSaving(false);
|
||||
}}
|
||||
>
|
||||
{({ register, errors }) => (
|
||||
@@ -96,7 +97,7 @@ export const SaveDashboardForm = ({
|
||||
icon={saving ? 'fa fa-spinner' : undefined}
|
||||
aria-label={selectors.pages.SaveDashboardModal.save}
|
||||
>
|
||||
{saving ? '' : 'Save'}
|
||||
Save
|
||||
</Button>
|
||||
{!saveModel.hasChanges && <div>No changes to save</div>}
|
||||
</Stack>
|
||||
|
||||
Reference in New Issue
Block a user