Alerting: Don't show success message after updating AM config (#90934)

This commit is contained in:
Tom Ratcliffe 2024-07-29 12:02:34 +01:00 committed by GitHub
parent 733807f963
commit 604c99f137
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -242,11 +242,11 @@ export const alertmanagerApi = alertingApi.injectEndpoints({
void,
{ selectedAlertmanager: string; config: AlertManagerCortexConfig }
>({
query: ({ selectedAlertmanager, config, ...rest }) => ({
query: ({ selectedAlertmanager, config }) => ({
url: `/api/alertmanager/${getDatasourceAPIUid(selectedAlertmanager)}/config/api/v1/alerts`,
method: 'POST',
data: config,
...rest,
showSuccessAlert: false,
}),
invalidatesTags: ['AlertmanagerConfiguration'],
}),