Skip to content

Commit

Permalink
Add missing 'VPC deleted' toast (#2425)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliepark authored Sep 10, 2024
1 parent 93bcef9 commit 8ecb36a
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 8ecb36a

Please sign in to comment.