File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
public/app/features/alerting/unified/components/rule-editor Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 && (
You can’t perform that action at this time.
0 commit comments