We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79abc0c commit 857e2b1Copy full SHA for 857e2b1
public/app/features/alerting/unified/components/rule-editor/AlertRuleNameInput.tsx
@@ -34,6 +34,7 @@ export const AlertRuleNameAndMetric = () => {
34
const isGrafanaRecordingRule = isGrafanaRecordingRuleByType(ruleFormType);
35
const isCloudRecordingRule = isCloudRecordingRuleByType(ruleFormType);
36
const recordingLabel = isGrafanaRecordingRule ? 'recording rule and metric' : 'recording rule';
37
+ const namePlaceholder = isRecording ? 'recording rule' : 'alert rule';
38
const entityName = isRecording ? recordingLabel : 'alert rule';
39
return (
40
<RuleEditorSection
@@ -58,7 +59,7 @@ export const AlertRuleNameAndMetric = () => {
58
59
: undefined,
60
})}
61
aria-label="name"
- placeholder={`Give your ${entityName} a name`}
62
+ placeholder={`Give your ${namePlaceholder} a name`}
63
/>
64
</Field>
65
{isGrafanaRecordingRule && (
0 commit comments