Skip to content

Commit

Permalink
Naming updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Elson9 committed Jun 26, 2024
1 parent 0ae0620 commit b158c92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/nextapp/components/namespace-menu/namespace-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const NamespaceMenu: React.FC<NamespaceMenuProps> = ({
const handleNamespaceChange = React.useCallback(
(namespace: Namespace) => async () => {
toast({
title: `Switching to ${namespace.name} namespace`,
title: `Switching to ${namespace.name} gateway`,
status: 'info',
isClosable: true,
});
Expand All @@ -89,14 +89,14 @@ const NamespaceMenu: React.FC<NamespaceMenuProps> = ({
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,
});
Expand Down
6 changes: 3 additions & 3 deletions src/nextapp/pages/manager/gateways/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand All @@ -107,15 +107,15 @@ 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,
});
router.push('/manager/gateways/detail');
} catch (err) {
toast.closeAll();
toast({
title: 'Unable to switch namespaces',
title: 'Unable to switch gateways',
status: 'error',
isClosable: true,
});
Expand Down

0 comments on commit b158c92

Please sign in to comment.