From 70d4f7efb59ba430b243ab36de9454ccbd9dc4e5 Mon Sep 17 00:00:00 2001 From: Charlie Park Date: Mon, 9 Sep 2024 17:12:18 -0700 Subject: [PATCH] Add missing 'VPC deleted' toast --- app/pages/project/vpcs/VpcsPage.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/pages/project/vpcs/VpcsPage.tsx b/app/pages/project/vpcs/VpcsPage.tsx index c03dfeb6b..2cc0ecf01 100644 --- a/app/pages/project/vpcs/VpcsPage.tsx +++ b/app/pages/project/vpcs/VpcsPage.tsx @@ -22,6 +22,7 @@ import { Networking16Icon, Networking24Icon } from '@oxide/design-system/icons/r import { DocsPopover } from '~/components/DocsPopover' import { getProjectSelector, useProjectSelector, useQuickActions } from '~/hooks' import { confirmDelete } from '~/stores/confirm-delete' +import { addToast } from '~/stores/toast' import { SkeletonCell } from '~/table/cells/EmptyCell' import { LinkCell, makeLinkCell } from '~/table/cells/LinkCell' import { getActionsCol, type MenuAction } from '~/table/columns/action-col' @@ -83,6 +84,7 @@ export function VpcsPage() { const { mutateAsync: deleteVpc } = useApiMutation('vpcDelete', { onSuccess() { queryClient.invalidateQueries('vpcList') + addToast({ content: 'Your VPC has been deleted' }) }, })