Fix labels wording (#3537)
This commit is contained in:
parent
94f5fce070
commit
885f3e53f5
4 changed files with 7 additions and 7 deletions
|
|
@ -151,7 +151,7 @@ const IntegrationForm = observer((props: IntegrationFormProps) => {
|
|||
<br />
|
||||
You can modify behaviour in{' '}
|
||||
{id === 'new' ? (
|
||||
'Alert group labels'
|
||||
'Alert group labeling'
|
||||
) : (
|
||||
<PluginLink onClick={() => navigateToAlertGroupLabels(id)}>Alert group labels</PluginLink>
|
||||
)}{' '}
|
||||
|
|
|
|||
|
|
@ -254,7 +254,7 @@ const CustomLabels = (props: CustomLabelsProps) => {
|
|||
|
||||
const { labelsStore } = useStore();
|
||||
|
||||
const handlePlainLabelAdd = () => {
|
||||
const handleStaticLabelAdd = () => {
|
||||
onChange({
|
||||
...alertGroupLabels,
|
||||
custom: [
|
||||
|
|
@ -266,7 +266,7 @@ const CustomLabels = (props: CustomLabelsProps) => {
|
|||
],
|
||||
});
|
||||
};
|
||||
const handleTemplatedLabelAdd = () => {
|
||||
const handleDynamicLabelAdd = () => {
|
||||
onChange({
|
||||
...alertGroupLabels,
|
||||
custom: [
|
||||
|
|
@ -379,8 +379,8 @@ const CustomLabels = (props: CustomLabelsProps) => {
|
|||
<Dropdown
|
||||
overlay={
|
||||
<Menu>
|
||||
<Menu.Item label="Plain label" onClick={handlePlainLabelAdd} />
|
||||
<Menu.Item label="Templated label" onClick={handleTemplatedLabelAdd} />
|
||||
<Menu.Item label="Static label" onClick={handleStaticLabelAdd} />
|
||||
<Menu.Item label="Dynamic label" onClick={handleDynamicLabelAdd} />
|
||||
</Menu>
|
||||
}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -850,7 +850,7 @@ const IntegrationActions: React.FC<IntegrationActionsProps> = ({
|
|||
{store.hasFeature(AppFeature.Labels) && (
|
||||
<WithPermissionControlTooltip userAction={UserActions.IntegrationsWrite}>
|
||||
<div className={cx('integration__actionItem')} onClick={() => openLabelsForm()}>
|
||||
<Text type="primary">Alert group labels</Text>
|
||||
<Text type="primary">Alert group labeling</Text>
|
||||
</div>
|
||||
</WithPermissionControlTooltip>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -498,7 +498,7 @@ class Integrations extends React.Component<IntegrationsProps, IntegrationsState>
|
|||
{store.hasFeature(AppFeature.Labels) && (
|
||||
<WithPermissionControlTooltip key="edit" userAction={UserActions.IntegrationsWrite}>
|
||||
<div className={cx('integrations-actionItem')} onClick={() => this.onLabelsEditClick(item.id)}>
|
||||
<Text type="primary">Alert group labels</Text>
|
||||
<Text type="primary">Alert group labeling</Text>
|
||||
</div>
|
||||
</WithPermissionControlTooltip>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue