{(_t) =>
_t('octavia_load_balancer_global_error', {
message: error?.response?.data?.message || error?.message || null,
diff --git a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/Listeners.page.tsx b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/Listeners.page.tsx
index 2ccffb385f38..f2fbe8a774d8 100644
--- a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/Listeners.page.tsx
+++ b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/Listeners.page.tsx
@@ -10,7 +10,7 @@ import { Outlet } from 'react-router-dom';
import { DISCOVER_LINK } from '@/constants';
export default function Listeners() {
- const { t } = useTranslation('octavia-load-balancer-listeners');
+ const { t } = useTranslation('listeners');
return (
diff --git a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/create/Create.page.tsx b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/create/Create.page.tsx
index 9e5c7238852f..4ab1dc4fba16 100644
--- a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/create/Create.page.tsx
+++ b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/create/Create.page.tsx
@@ -1,16 +1,27 @@
import { ApiError } from '@ovh-ux/manager-core-api';
import { useNotifications } from '@ovh-ux/manager-react-components';
+import { useState } from 'react';
import { Translation } from 'react-i18next';
import { useNavigate, useParams } from 'react-router-dom';
-import { useCreateListener } from '@/api/hook/useLoadBalancer';
-import ListenerForm from '@/components/detail/listeners/ListenerForm.page';
+import ListenerForm, {
+ TListenerFormState,
+} from '@/components/form/ListenerForm.page';
import { useAllLoadBalancerPools } from '@/api/hook/usePool';
+import { useCreateListener } from '@/api/hook/useLoadBalancer';
+import { TProtocol } from '@/api/data/load-balancer';
export default function CreateListener() {
const navigate = useNavigate();
const { projectId, region, loadBalancerId } = useParams();
const { addSuccess, addError } = useNotifications();
+ const [formState, setFormState] = useState({
+ name: '',
+ protocol: '' as TProtocol,
+ port: 1,
+ pool: null,
+ });
+
const { data: pools } = useAllLoadBalancerPools({
projectId,
region,
@@ -23,7 +34,7 @@ export default function CreateListener() {
loadBalancerId,
onError(error: ApiError) {
addError(
-
+
{(_t) =>
_t('octavia_load_balancer_global_error', {
message: error?.response?.data?.message || error?.message || null,
@@ -31,16 +42,17 @@ export default function CreateListener() {
})
}
,
+
true,
);
navigate('..');
},
onSuccess() {
addSuccess(
-
+
{(_t) =>
_t('octavia_load_balancer_listeners_create_success', {
- listener: '??',
+ listener: formState?.name,
})
}
,
@@ -52,6 +64,8 @@ export default function CreateListener() {
return (
navigate('..')}
diff --git a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/delete/DeleteListener.page.tsx b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/delete/DeleteListener.page.tsx
index 4b596d8664bf..41a7c96e1a89 100644
--- a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/delete/DeleteListener.page.tsx
+++ b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/delete/DeleteListener.page.tsx
@@ -30,7 +30,7 @@ export default function DeleteListenerPage() {
region,
onError(error: ApiError) {
addError(
-
+
{(_t) =>
_t('octavia_load_balancer_global_error', {
message: error?.response?.data?.message || error?.message || null,
@@ -44,7 +44,7 @@ export default function DeleteListenerPage() {
},
onSuccess() {
addSuccess(
-
+
{(_t) =>
_t('octavia_load_balancer_listener_delete_success', {
listener: listener?.name,
diff --git a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/edit/Edit.page.tsx b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/edit/Edit.page.tsx
index ddc524748099..1f7ef0f7a9c7 100644
--- a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/edit/Edit.page.tsx
+++ b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/edit/Edit.page.tsx
@@ -1,17 +1,28 @@
import { ApiError } from '@ovh-ux/manager-core-api';
import { useNotifications } from '@ovh-ux/manager-react-components';
+import { useEffect, useState } from 'react';
import { Translation } from 'react-i18next';
import { useNavigate, useParams } from 'react-router-dom';
-import ListenerForm from '@/components/detail/listeners/ListenerForm.page';
-import { useEditLoadBalancer } from '@/api/hook/useLoadBalancer';
+import { TProtocol } from '@/api/data/load-balancer';
import { useListener } from '@/api/hook/useListener';
+import { useEditLoadBalancer } from '@/api/hook/useLoadBalancer';
import { useAllLoadBalancerPools } from '@/api/hook/usePool';
+import ListenerForm, {
+ TListenerFormState,
+} from '@/components/form/ListenerForm.page';
export default function EditListener() {
const navigate = useNavigate();
const { projectId, region, loadBalancerId, listenerId } = useParams();
const { addSuccess, addError } = useNotifications();
+ const [formState, setFormState] = useState({
+ name: '',
+ protocol: '' as TProtocol,
+ port: 1,
+ pool: null,
+ });
+
const { data: pools } = useAllLoadBalancerPools({
projectId,
region,
@@ -31,7 +42,7 @@ export default function EditListener() {
listenerId,
onError(error: ApiError) {
addError(
-
+
{(_t) =>
_t('octavia_load_balancer_global_error', {
message: error?.response?.data?.message || error?.message || null,
@@ -45,10 +56,10 @@ export default function EditListener() {
},
onSuccess() {
addSuccess(
-
+
{(_t) =>
_t('octavia_load_balancer_listeners_edit_success', {
- listener: '??',
+ listener: formState?.name,
})
}
,
@@ -58,9 +69,21 @@ export default function EditListener() {
},
});
+ useEffect(() => {
+ if (listener && pools?.length) {
+ setFormState({
+ name: listener.name,
+ protocol: listener.protocol,
+ port: listener.port,
+ pool: pools.find((pool) => pool.id === listener.defaultPoolId) ?? null,
+ });
+ }
+ }, [listener, pools]);
+
return (
+
{(_t) =>
_t('octavia_load_balancer_global_error', {
message: error?.response?.data?.message || error?.message || null,
@@ -53,7 +53,7 @@ export default function CreatePage() {
onSuccess(newPolicy) {
const l7RulesCreationLink = `${projectUrl}/octavia-load-balancer/${region}/${loadBalancerId}/listeners/${listenerId}/l7/${newPolicy?.id}/rules/create`;
addSuccess(
-
+
{(_t) => (
{
@@ -28,7 +28,7 @@ export default function DeletePage() {
policyId,
onError(error: ApiError) {
addError(
-
+
{(_t) =>
_t('octavia_load_balancer_global_error', {
message: error?.response?.data?.message || error?.message || null,
@@ -42,7 +42,7 @@ export default function DeletePage() {
},
onSuccess() {
addSuccess(
-
+
{(_t) =>
_t('octavia_load_balancer_list_l7_policies_delete_success', {
policy: policy?.name,
diff --git a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/edit/Edit.page.tsx b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/edit/Edit.page.tsx
index 14164532bdbd..aa2829cf1b7e 100644
--- a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/edit/Edit.page.tsx
+++ b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/edit/Edit.page.tsx
@@ -5,13 +5,13 @@ import { ApiError } from '@ovh-ux/manager-core-api';
import { ODS_SPINNER_SIZE } from '@ovhcloud/ods-components';
import { OsdsSpinner } from '@ovhcloud/ods-components/react';
import { useGetPolicy, useUpdatePolicy } from '@/api/hook/useL7Policy';
-import PolicyForm from '@/components/detail/listeners/l7/PolicyForm.component';
+import PolicyForm from '@/components/form/PolicyForm.component';
import { useListener } from '@/api/hook/useListener';
import { useAllLoadBalancerPools } from '@/api/hook/usePool';
export default function EditPage() {
const { addSuccess, addError } = useNotifications();
- const { t } = useTranslation('octavia-load-balancer-l7-edit');
+ const { t } = useTranslation('l7/edit');
const {
listenerId,
projectId,
@@ -43,7 +43,7 @@ export default function EditPage() {
region,
onError(error: ApiError) {
addError(
-
+
{(_t) =>
_t('octavia_load_balancer_global_error', {
message: error?.response?.data?.message || error?.message || null,
@@ -56,7 +56,7 @@ export default function EditPage() {
},
onSuccess(updatedPolicy) {
addSuccess(
-
+
{(_t) => (
) {
- const { t } = useTranslation('octavia-load-balancer-l7');
+ const { t } = useTranslation('l7');
const items = [
{
diff --git a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/list/List.page.tsx b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/list/List.page.tsx
index 2c3ec961e56b..31cfe803f8b8 100644
--- a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/list/List.page.tsx
+++ b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/list/List.page.tsx
@@ -32,7 +32,7 @@ import { useL7Policies } from '@/api/hook/useL7Policy';
import { useL7PoliciesDatagridColumn } from '@/pages/detail/listeners/l7/list/useL7PoliciesDatagridColumn';
export default function L7PoliciesList() {
- const { t } = useTranslation('octavia-load-balancer-l7');
+ const { t } = useTranslation('l7');
const { t: tFilter } = useTranslation('filter');
const { projectId, region, listenerId } = useParams();
diff --git a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/list/useL7PoliciesDatagridColumn.tsx b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/list/useL7PoliciesDatagridColumn.tsx
index 2b400183672a..734af0a9b176 100644
--- a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/list/useL7PoliciesDatagridColumn.tsx
+++ b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/list/useL7PoliciesDatagridColumn.tsx
@@ -15,11 +15,11 @@ import {
import OperatingStatusComponent from '@/components/listing/OperatingStatus.component';
import ProvisioningStatusComponent from '@/components/listing/ProvisioningStatus.component';
import { TL7Policy } from '@/api/data/l7Policies';
-import ActionsComponent from '@/components/detail/listeners/l7/Actions.component';
+import ActionsComponent from '@/pages/detail/listeners/l7/list/Actions.component';
export const useL7PoliciesDatagridColumn = () => {
- const { t: tLoadBalancer } = useTranslation('octavia-load-balancer');
- const { t: tL7Policies } = useTranslation('octavia-load-balancer-l7');
+ const { t: tLoadBalancer } = useTranslation('load-balancer');
+ const { t: tL7Policies } = useTranslation('l7');
const navigate = useNavigate();
const columns: DatagridColumn[] = [
diff --git a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/L7Rules.page.tsx b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/L7Rules.page.tsx
index 6fc2cba9d86f..9086d9b22dda 100644
--- a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/L7Rules.page.tsx
+++ b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/L7Rules.page.tsx
@@ -25,11 +25,11 @@ import { ROUTE_PATHS } from '@/routes';
export default function L7RulesPage() {
const { t: tPciCommon } = useTranslation('pci-common');
- const { t: tL7Policies } = useTranslation('octavia-load-balancer-l7');
+ const { t: tL7Policies } = useTranslation('l7');
const { t } = useTranslation('l7/rules');
const hrefProject = useProjectUrl('public-cloud');
- const { t: tLoadBalancer } = useTranslation('octavia-load-balancer');
- const { t: tListener } = useTranslation('octavia-load-balancer-listeners');
+ const { t: tLoadBalancer } = useTranslation('load-balancer');
+ const { t: tListener } = useTranslation('listeners');
const { projectId, loadBalancerId, region, listenerId } = useParams();
const { data: project } = useProject();
const { data: listener } = useListener({
diff --git a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/create/Create.page.tsx b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/create/Create.page.tsx
index 2813ad836a79..4e916129672d 100644
--- a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/create/Create.page.tsx
+++ b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/create/Create.page.tsx
@@ -4,7 +4,7 @@ import { ApiError } from '@ovh-ux/manager-core-api';
import { useNotifications } from '@ovh-ux/manager-react-components';
import { ODS_SPINNER_SIZE } from '@ovhcloud/ods-components';
import { OsdsSpinner } from '@ovhcloud/ods-components/react';
-import RuleForm from '@/components/detail/listeners/l7/rules/RuleForm.component';
+import RuleForm from '@/components/form/RuleForm.component';
import { useCreateL7Rule } from '@/api/hook/useL7Rule';
export default function CreatePage() {
@@ -18,7 +18,7 @@ export default function CreatePage() {
region,
onError(error: ApiError) {
addError(
-
+
{(_t) =>
_t('octavia_load_balancer_global_error', {
message: error?.response?.data?.message || error?.message || null,
diff --git a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/delete/Delete.page.tsx b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/delete/Delete.page.tsx
index aacac9701e13..c9bed26745a2 100644
--- a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/delete/Delete.page.tsx
+++ b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/delete/Delete.page.tsx
@@ -23,7 +23,7 @@ export default function DeletePage() {
ruleId,
onError(error: ApiError) {
addError(
-
+
{(_t) =>
_t('octavia_load_balancer_global_error', {
message: error?.response?.data?.message || error?.message || null,
diff --git a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/edit/Edit.page.tsx b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/edit/Edit.page.tsx
index 44dd72090611..7d4c71b44fbb 100644
--- a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/edit/Edit.page.tsx
+++ b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/edit/Edit.page.tsx
@@ -4,7 +4,7 @@ import { ApiError } from '@ovh-ux/manager-core-api';
import { useNotifications } from '@ovh-ux/manager-react-components';
import { ODS_SPINNER_SIZE } from '@ovhcloud/ods-components';
import { OsdsSpinner } from '@ovhcloud/ods-components/react';
-import RuleForm from '@/components/detail/listeners/l7/rules/RuleForm.component';
+import RuleForm from '@/components/form/RuleForm.component';
import { useGetL7Rule, useUpdateL7Rule } from '@/api/hook/useL7Rule';
export default function UpdatePage() {
@@ -17,7 +17,7 @@ export default function UpdatePage() {
region,
onError(error: ApiError) {
addError(
-
+
{(_t) =>
_t('octavia_load_balancer_global_error', {
message: error?.response?.data?.message || error?.message || null,
diff --git a/packages/manager/apps/pci-load-balancer/src/components/detail/listeners/l7/rules/Actions.component.tsx b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/list/Actions.component.tsx
similarity index 100%
rename from packages/manager/apps/pci-load-balancer/src/components/detail/listeners/l7/rules/Actions.component.tsx
rename to packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/list/Actions.component.tsx
diff --git a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/list/useL7RulesDatagridColumn.tsx b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/list/useL7RulesDatagridColumn.tsx
index f0e4fbc57627..65dd5bb735c3 100644
--- a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/list/useL7RulesDatagridColumn.tsx
+++ b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/l7/rules/list/useL7RulesDatagridColumn.tsx
@@ -8,11 +8,11 @@ import { ODS_THEME_COLOR_INTENT } from '@ovhcloud/ods-common-theming';
import { OsdsIcon } from '@ovhcloud/ods-components/react';
import OperatingStatusComponent from '@/components/listing/OperatingStatus.component';
import ProvisioningStatusComponent from '@/components/listing/ProvisioningStatus.component';
-import ActionsComponent from '@/components/detail/listeners/l7/rules/Actions.component';
+import ActionsComponent from '@/pages/detail/listeners/l7/rules/list/Actions.component';
import { TL7Rule } from '@/api/data/l7Rules';
export const useL7RulesDatagridColumn = () => {
- const { t: tLoadBalancer } = useTranslation('octavia-load-balancer');
+ const { t: tLoadBalancer } = useTranslation('load-balancer');
const { t: tL7Policies } = useTranslation('l7/rules/list');
const columns: DatagridColumn[] = [
{
@@ -88,6 +88,7 @@ export const useL7RulesDatagridColumn = () => {
),
label: '',
+ isSortable: false,
},
];
diff --git a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/list/Actions.component.tsx b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/list/Actions.component.tsx
new file mode 100644
index 000000000000..e40e8890c5a2
--- /dev/null
+++ b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/list/Actions.component.tsx
@@ -0,0 +1,62 @@
+import { ActionMenu } from '@ovh-ux/manager-react-components';
+import {
+ OsdsTooltip,
+ OsdsTooltipContent,
+} from '@ovhcloud/ods-components/react';
+import { useTranslation } from 'react-i18next';
+import { useHref } from 'react-router-dom';
+import { TLoadBalancerListener } from '@/api/data/load-balancer';
+
+export type ActionsComponentProps = {
+ listener: TLoadBalancerListener;
+};
+
+export default function ActionsComponent({
+ listener,
+}: Readonly) {
+ const { id, protocol } = listener;
+
+ const { t } = useTranslation('listeners');
+ const listenerEdit = useHref(`../${id}/edit`);
+ const policiesHref = useHref(`../${id}/l7/list`);
+ const deleteHref = useHref(`${id}/delete`);
+
+ const isPoliciesManagementAvailableForListener = protocol === 'http';
+
+ const items = [
+ {
+ id: 0,
+ href: listenerEdit,
+ label: t('octavia_load_balancer_listeners_actions_detail'),
+ },
+ {
+ id: 1,
+ href: policiesHref,
+ label: (
+ <>
+ {isPoliciesManagementAvailableForListener ? (
+ t('octavia_load_balancer_listeners_actions_policies')
+ ) : (
+ /**
+ * The OsdsTooltip is not working within and OsdsMenu !!
+ */
+
+ {t('octavia_load_balancer_listeners_actions_policies')}
+
+ {t('octavia_load_balancer_instances_table_pools_tooltip')}
+
+
+ )}
+ >
+ ),
+ disabled: !isPoliciesManagementAvailableForListener,
+ },
+ {
+ id: 2,
+ href: deleteHref,
+ label: t('octavia_load_balancer_listeners_actions_delete'),
+ },
+ ];
+
+ return ;
+}
diff --git a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/list/List.page.tsx b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/list/List.page.tsx
index 9f1b2e5bdbff..628c20eb1f29 100644
--- a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/list/List.page.tsx
+++ b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/list/List.page.tsx
@@ -31,7 +31,7 @@ import { useDatagridColumn } from '@/pages/detail/listeners/list/useDatagridColu
import { useLoadBalancerListeners } from '@/api/hook/useLoadBalancer';
export default function ListenerList() {
- const { t } = useTranslation('octavia-load-balancer-listeners');
+ const { t } = useTranslation('listeners');
const { t: tFilter } = useTranslation('filter');
const { projectId, region, loadBalancerId } = useParams();
diff --git a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/list/useDatagridColumn.tsx b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/list/useDatagridColumn.tsx
index e63167b0b670..7d325598bbc6 100644
--- a/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/list/useDatagridColumn.tsx
+++ b/packages/manager/apps/pci-load-balancer/src/pages/detail/listeners/list/useDatagridColumn.tsx
@@ -9,12 +9,12 @@ import { useHref } from 'react-router-dom';
import OperatingStatusComponent from '@/components/listing/OperatingStatus.component';
import ProvisioningStatusComponent from '@/components/listing/ProvisioningStatus.component';
-import ActionsComponent from '@/components/detail/listeners/Actions.component';
+import ActionsComponent from '@/pages/detail/listeners/list/Actions.component';
import { TLoadBalancerListener } from '@/api/data/load-balancer';
export const useDatagridColumn = () => {
- const { t } = useTranslation('octavia-load-balancer');
- const { t: tListeners } = useTranslation('octavia-load-balancer-listeners');
+ const { t } = useTranslation('load-balancer');
+ const { t: tListeners } = useTranslation('listeners');
const columns: DatagridColumn[] = [
{
@@ -84,7 +84,7 @@ export const useDatagridColumn = () => {
id: 'actions',
cell: (props: TLoadBalancerListener) => (
),
label: '',
diff --git a/packages/manager/apps/pci-load-balancer/src/pages/detail/overview/Configuration.tsx b/packages/manager/apps/pci-load-balancer/src/pages/detail/overview/Configuration.tsx
index 53a40365dcef..731c4a958d40 100644
--- a/packages/manager/apps/pci-load-balancer/src/pages/detail/overview/Configuration.tsx
+++ b/packages/manager/apps/pci-load-balancer/src/pages/detail/overview/Configuration.tsx
@@ -37,8 +37,8 @@ export default function Configuration({
subnetCidr,
loadBalancerVipAddress,
}: ConfigurationProps) {
- const { t: tOverview } = useTranslation('octavia_load_balancer_overview');
- const { t } = useTranslation('octavia-load-balancer');
+ const { t: tOverview } = useTranslation('load-balancer/overview');
+ const { t } = useTranslation('load-balancer');
return (
diff --git a/packages/manager/apps/pci-load-balancer/src/pages/detail/overview/GeneralInformation.tsx b/packages/manager/apps/pci-load-balancer/src/pages/detail/overview/GeneralInformation.tsx
index 379e5f9f08a9..d220edcaec7b 100644
--- a/packages/manager/apps/pci-load-balancer/src/pages/detail/overview/GeneralInformation.tsx
+++ b/packages/manager/apps/pci-load-balancer/src/pages/detail/overview/GeneralInformation.tsx
@@ -33,7 +33,7 @@ export default function GeneralInformation({
loadBalancerCreationDate,
loadBalancerId,
}: GeneralInformationProps) {
- const { t: tOverview } = useTranslation('octavia_load_balancer_overview');
+ const { t } = useTranslation('load-balancer/overview');
const editNameHref = useHref('./edit-name');
@@ -51,13 +51,13 @@ export default function GeneralInformation({
level={ODS_TEXT_LEVEL.heading}
color={ODS_THEME_COLOR_INTENT.text}
>
- {tOverview('octavia_load_balancer_overview_info_title')}
+ {t('octavia_load_balancer_overview_info_title')}
{loadBalancerName}
-
-
+
-
+ size={ODS_BUTTON_SIZE.sm}
+ variant={ODS_BUTTON_VARIANT.ghost}
+ href={editNameHref}
+ >
+
+
+