From 885f3e53f545318dc03e95dede2f5ee38c39ec75 Mon Sep 17 00:00:00 2001 From: Innokentii Konstantinov Date: Mon, 11 Dec 2023 17:59:02 +0800 Subject: [PATCH] Fix labels wording (#3537) --- .../src/containers/IntegrationForm/IntegrationForm.tsx | 2 +- .../IntegrationLabelsForm/IntegrationLabelsForm.tsx | 8 ++++---- grafana-plugin/src/pages/integration/Integration.tsx | 2 +- grafana-plugin/src/pages/integrations/Integrations.tsx | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/grafana-plugin/src/containers/IntegrationForm/IntegrationForm.tsx b/grafana-plugin/src/containers/IntegrationForm/IntegrationForm.tsx index efb2c5b7..cd3c62bf 100644 --- a/grafana-plugin/src/containers/IntegrationForm/IntegrationForm.tsx +++ b/grafana-plugin/src/containers/IntegrationForm/IntegrationForm.tsx @@ -151,7 +151,7 @@ const IntegrationForm = observer((props: IntegrationFormProps) => {
You can modify behaviour in{' '} {id === 'new' ? ( - 'Alert group labels' + 'Alert group labeling' ) : ( navigateToAlertGroupLabels(id)}>Alert group labels )}{' '} diff --git a/grafana-plugin/src/containers/IntegrationLabelsForm/IntegrationLabelsForm.tsx b/grafana-plugin/src/containers/IntegrationLabelsForm/IntegrationLabelsForm.tsx index 5bb92a29..a83c912b 100644 --- a/grafana-plugin/src/containers/IntegrationLabelsForm/IntegrationLabelsForm.tsx +++ b/grafana-plugin/src/containers/IntegrationLabelsForm/IntegrationLabelsForm.tsx @@ -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) => { - - + + } > diff --git a/grafana-plugin/src/pages/integration/Integration.tsx b/grafana-plugin/src/pages/integration/Integration.tsx index b4bc5f0d..249ea223 100644 --- a/grafana-plugin/src/pages/integration/Integration.tsx +++ b/grafana-plugin/src/pages/integration/Integration.tsx @@ -850,7 +850,7 @@ const IntegrationActions: React.FC = ({ {store.hasFeature(AppFeature.Labels) && (
openLabelsForm()}> - Alert group labels + Alert group labeling
)} diff --git a/grafana-plugin/src/pages/integrations/Integrations.tsx b/grafana-plugin/src/pages/integrations/Integrations.tsx index fc094637..95af59cb 100644 --- a/grafana-plugin/src/pages/integrations/Integrations.tsx +++ b/grafana-plugin/src/pages/integrations/Integrations.tsx @@ -498,7 +498,7 @@ class Integrations extends React.Component {store.hasFeature(AppFeature.Labels) && (
this.onLabelsEditClick(item.id)}> - Alert group labels + Alert group labeling
)}