From 947829be83f88bff0f82a410055d73de99f92e53 Mon Sep 17 00:00:00 2001 From: Matej Kubinec Date: Tue, 26 Nov 2024 15:55:05 +0100 Subject: [PATCH] PMM-13542 Reload templates by default --- .../components/AlertRuleTemplate/AlertRuleTemplate.service.ts | 2 +- .../components/AlertRuleTemplate/AlertRuleTemplate.types.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/percona/integrated-alerting/components/AlertRuleTemplate/AlertRuleTemplate.service.ts b/public/app/percona/integrated-alerting/components/AlertRuleTemplate/AlertRuleTemplate.service.ts index 1e2b6ce870ade..4880e6c76f0b8 100644 --- a/public/app/percona/integrated-alerting/components/AlertRuleTemplate/AlertRuleTemplate.service.ts +++ b/public/app/percona/integrated-alerting/components/AlertRuleTemplate/AlertRuleTemplate.service.ts @@ -21,7 +21,7 @@ export const AlertRuleTemplateService = { return api .get(BASE_URL, false, { cancelToken: token, - params: { ...payload }, + params: { ...payload, reload: true }, }) .then( ({ totals, templates = [] }): TemplatesList => ({ diff --git a/public/app/percona/integrated-alerting/components/AlertRuleTemplate/AlertRuleTemplate.types.ts b/public/app/percona/integrated-alerting/components/AlertRuleTemplate/AlertRuleTemplate.types.ts index a8cd25a480947..0295e1c3e58a7 100644 --- a/public/app/percona/integrated-alerting/components/AlertRuleTemplate/AlertRuleTemplate.types.ts +++ b/public/app/percona/integrated-alerting/components/AlertRuleTemplate/AlertRuleTemplate.types.ts @@ -18,6 +18,7 @@ export interface AlertRuleTemplateGetPayload { page_size: number; index: number; }; + reload?: boolean; } interface AlertRuleTemplatesTotals {