diff --git a/public/app/features/alerting/unified/components/AlertLabelDropdown.tsx b/public/app/features/alerting/unified/components/AlertLabelDropdown.tsx index 57db0633d9b..62da243bba5 100644 --- a/public/app/features/alerting/unified/components/AlertLabelDropdown.tsx +++ b/public/app/features/alerting/unified/components/AlertLabelDropdown.tsx @@ -4,8 +4,7 @@ import { GroupBase, OptionsOrGroups, createFilter } from 'react-select'; import { SelectableValue } from '@grafana/data'; import { Field, Select, useStyles2 } from '@grafana/ui'; - -import { t } from '../../../../core/internationalization'; +import { t } from 'app/core/internationalization'; export interface AlertLabelDropdownProps { onChange: (newValue: SelectableValue) => void; @@ -54,7 +53,7 @@ const AlertLabelDropdown: FC = forwardRef diff --git a/public/app/features/alerting/unified/components/rule-editor/labels/LabelsField.tsx b/public/app/features/alerting/unified/components/rule-editor/labels/LabelsField.tsx index 68a9d681a81..6fd7d04a915 100644 --- a/public/app/features/alerting/unified/components/rule-editor/labels/LabelsField.tsx +++ b/public/app/features/alerting/unified/components/rule-editor/labels/LabelsField.tsx @@ -80,7 +80,12 @@ export function LabelsSubForm({ dataSourceName, onClose, initialLabels }: Labels
- {getLabelText(type)} + + {getLabelText(type)} + + {getDescriptionText()} + + @@ -436,6 +441,13 @@ function getLabelText(type: RuleFormType) { return text; } +function getDescriptionText() { + return t( + 'alerting.labels-sub-form.description', + 'Select a label key/value from the options below, or type a new one and press Enter.' + ); +} + const getStyles = (theme: GrafanaTheme2) => { return { flexColumn: css({ diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json index bc861a6c32b..332ba1e866b 100644 --- a/public/locales/en-US/grafana.json +++ b/public/locales/en-US/grafana.json @@ -1205,6 +1205,9 @@ "notes": "Notes", "returns": "Returns" }, + "label-picker": { + "no-options-message": "No labels found" + }, "labels-editor-modal": { "title-edit-labels": "Edit labels" }, @@ -1220,6 +1223,7 @@ "title-labels": "Labels" }, "labels-sub-form": { + "description": "Select a label key/value from the options below, or type a new one and press Enter.", "save": "Save" }, "labels-with-suggestions": {