mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Update error message when Alertmanager configuration override (#67895)
This commit is contained in:
parent
f5ac099907
commit
6b51f9e06d
@ -580,7 +580,7 @@ export const updateAlertManagerConfigAction = createAsyncThunk<void, UpdateAlert
|
|||||||
|
|
||||||
if (!isLatestConfigEmpty && oldLastConfigsDiffer) {
|
if (!isLatestConfigEmpty && oldLastConfigsDiffer) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
'It seems configuration has been recently updated. Please reload page and try again to make sure that recent changes are not overwritten.'
|
'A newer Alertmanager configuration is available. Please reload the page and try again to not overwrite recent changes.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
await updateAlertManagerConfig(alertManagerSourceName, addDefaultsToAlertmanagerConfig(newConfig));
|
await updateAlertManagerConfig(alertManagerSourceName, addDefaultsToAlertmanagerConfig(newConfig));
|
||||||
|
Loading…
Reference in New Issue
Block a user