From 857e2b1bc30c0c82b44b689fa53158c0e96753a2 Mon Sep 17 00:00:00 2001 From: Sonia Aguilar <33540275+soniaAguilarPeiron@users.noreply.github.com> Date: Mon, 26 Aug 2024 17:34:49 +0200 Subject: [PATCH] Alerting: update Grafana recording rule name placeholder (#92406) update Grafana recording rule name placeholder --- .../unified/components/rule-editor/AlertRuleNameInput.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/features/alerting/unified/components/rule-editor/AlertRuleNameInput.tsx b/public/app/features/alerting/unified/components/rule-editor/AlertRuleNameInput.tsx index 746783adebd..02859af1b86 100644 --- a/public/app/features/alerting/unified/components/rule-editor/AlertRuleNameInput.tsx +++ b/public/app/features/alerting/unified/components/rule-editor/AlertRuleNameInput.tsx @@ -34,6 +34,7 @@ export const AlertRuleNameAndMetric = () => { const isGrafanaRecordingRule = isGrafanaRecordingRuleByType(ruleFormType); const isCloudRecordingRule = isCloudRecordingRuleByType(ruleFormType); const recordingLabel = isGrafanaRecordingRule ? 'recording rule and metric' : 'recording rule'; + const namePlaceholder = isRecording ? 'recording rule' : 'alert rule'; const entityName = isRecording ? recordingLabel : 'alert rule'; return ( { : undefined, })} aria-label="name" - placeholder={`Give your ${entityName} a name`} + placeholder={`Give your ${namePlaceholder} a name`} /> {isGrafanaRecordingRule && (