Ready to get started?

Join Adocasts Plus for $8/mo, or sign into an existing Adocasts Plus account, to get access to all of our lessons.

robot mascot smiling

The Confirm Delete Dialog & Deleting the Active Organization

@tomgobich
Published by
@tomgobich
In This Lesson

We'll create a reusable confirm deletion dialog and bind its state into our use resource actions composable. We'll then incorporate this all together to allow users to delete their active organization.

Chapters

00:00 - Adding a Delete Organization Button
00:36 - Creating our Confirm Destroy Dialog
04:48 - Updating our Resource Actions Composable with Destroy State
07:46 - Adding our Delete Organization Confirmation Dialog
09:43 - Deleting the Active Organization
13:13 - Installing the AlertDialog Shadcn-Vue Component
14:13 - Testing the Flow
14:50 - Gracefully Switching Active Organizations Post-Deletion
17:48 - Testing the Flow Once More

Join the Discussion 0 comments

Create a free account to join in on the discussion
robot comment bubble

Be the first to comment!