-
Notifications
You must be signed in to change notification settings - Fork 0
User List View #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…center router views
…g logic into composable
…hould be considered for a bigger prod application
feat: add a basic check if an email already exists.
…mprove display logic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally this is part of the components package. Did you use npx shadcn-vue@latest add toast to add the component? (ref: https://www.shadcn-vue.com/docs/components/toast.html)
| <div class="flex gap-2"> | ||
| <Input | ||
| v-model="newName" | ||
| placeholder="Name" | ||
| class="flex-1" | ||
| /> | ||
| <Input | ||
| v-model="newEmail" | ||
| placeholder="Email" | ||
| class="flex-1" | ||
| /> | ||
| </div> | ||
| <Button | ||
| class="bg-slate-500 hover:bg-blue-400 text-white" | ||
| @click="createNewUser" | ||
| > | ||
| Create new user | ||
| </Button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use a native <form> for this?
Added an exemplary user list view where users can be added and deleted. Gotten a little out of hand :D