Skip to content

Commit 857e2b1

Browse files
authoredAug 26, 2024
Alerting: update Grafana recording rule name placeholder (grafana#92406)
update Grafana recording rule name placeholder
1 parent 79abc0c commit 857e2b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎public/app/features/alerting/unified/components/rule-editor/AlertRuleNameInput.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export const AlertRuleNameAndMetric = () => {
3434
const isGrafanaRecordingRule = isGrafanaRecordingRuleByType(ruleFormType);
3535
const isCloudRecordingRule = isCloudRecordingRuleByType(ruleFormType);
3636
const recordingLabel = isGrafanaRecordingRule ? 'recording rule and metric' : 'recording rule';
37+
const namePlaceholder = isRecording ? 'recording rule' : 'alert rule';
3738
const entityName = isRecording ? recordingLabel : 'alert rule';
3839
return (
3940
<RuleEditorSection
@@ -58,7 +59,7 @@ export const AlertRuleNameAndMetric = () => {
5859
: undefined,
5960
})}
6061
aria-label="name"
61-
placeholder={`Give your ${entityName} a name`}
62+
placeholder={`Give your ${namePlaceholder} a name`}
6263
/>
6364
</Field>
6465
{isGrafanaRecordingRule && (

0 commit comments

Comments
 (0)
Failed to load comments.