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:
Torkel Ödegaard
2022-03-25 13:08:42 +01:00
committed by GitHub
parent c00f488f89
commit 3516821012
6 changed files with 52 additions and 78 deletions

View File

@@ -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>