Fix labels wording (#3537)

This commit is contained in:
Innokentii Konstantinov 2023-12-11 17:59:02 +08:00 committed by GitHub
parent 94f5fce070
commit 885f3e53f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View file

@ -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>
)}{' '}

View file

@ -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>
}
>

View file

@ -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>
)}

View file

@ -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>
)}