Skip to content

Commit

Permalink
Add missing 'VPC deleted' toast
Browse files Browse the repository at this point in the history
  • Loading branch information
charliepark committed Sep 10, 2024
1 parent 93bcef9 commit 70d4f7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/pages/project/vpcs/VpcsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -83,6 +84,7 @@ export function VpcsPage() {
const { mutateAsync: deleteVpc } = useApiMutation('vpcDelete', {
onSuccess() {
queryClient.invalidateQueries('vpcList')
addToast({ content: 'Your VPC has been deleted' })
},
})

Expand Down

0 comments on commit 70d4f7e

Please sign in to comment.