From b158c9290ccf32f280c0c5a2484d7f6660a4c30b Mon Sep 17 00:00:00 2001 From: James Elson Date: Wed, 26 Jun 2024 15:31:58 -0700 Subject: [PATCH] Naming updates --- src/nextapp/components/namespace-menu/namespace-menu.tsx | 6 +++--- src/nextapp/pages/manager/gateways/list.tsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/nextapp/components/namespace-menu/namespace-menu.tsx b/src/nextapp/components/namespace-menu/namespace-menu.tsx index 9a279776a..007c60f1f 100644 --- a/src/nextapp/components/namespace-menu/namespace-menu.tsx +++ b/src/nextapp/components/namespace-menu/namespace-menu.tsx @@ -78,7 +78,7 @@ const NamespaceMenu: React.FC = ({ const handleNamespaceChange = React.useCallback( (namespace: Namespace) => async () => { toast({ - title: `Switching to ${namespace.name} namespace`, + title: `Switching to ${namespace.name} gateway`, status: 'info', isClosable: true, }); @@ -89,14 +89,14 @@ const NamespaceMenu: React.FC = ({ toast.closeAll(); client.invalidateQueries(); toast({ - title: `Switched to ${namespace.name} namespace`, + title: `Switched to ${namespace.name} gateway`, status: 'success', isClosable: true, }); } catch (err) { toast.closeAll(); toast({ - title: 'Unable to switch namespaces', + title: 'Unable to switch gateways', status: 'error', isClosable: true, }); diff --git a/src/nextapp/pages/manager/gateways/list.tsx b/src/nextapp/pages/manager/gateways/list.tsx index c5d3ab7cf..b74d26389 100644 --- a/src/nextapp/pages/manager/gateways/list.tsx +++ b/src/nextapp/pages/manager/gateways/list.tsx @@ -97,7 +97,7 @@ const MyGatewaysPage: React.FC = () => { const handleNamespaceChange = React.useCallback( (namespace: Namespace) => async () => { toast({ - title: `Switching to ${namespace.name} namespace`, + title: `Switching to ${namespace.name} gateway`, status: 'info', isClosable: true, }); @@ -107,7 +107,7 @@ const MyGatewaysPage: React.FC = () => { toast.closeAll(); client.invalidateQueries(); toast({ - title: `Switched to ${namespace.name} namespace`, + title: `Switched to ${namespace.name} gateway`, status: 'success', isClosable: true, }); @@ -115,7 +115,7 @@ const MyGatewaysPage: React.FC = () => { } catch (err) { toast.closeAll(); toast({ - title: 'Unable to switch namespaces', + title: 'Unable to switch gateways', status: 'error', isClosable: true, });