Skip to content

Commit

Permalink
Add goto-registration
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Sep 25, 2024
1 parent 14c3d42 commit 41e349d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/assets/components/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const auth = useAuthStore()
<UFNavBarItem :to="{ name: 'about' }" label="About" />
<UFNavBarItem :to="{ name: 'auth' }" label="Auth" />
<UFNavBarItem :to="{ name: 'account.register' }" label="Register" v-if="!auth.isAuthenticated" />
<UFNavBarLogin v-if="!auth.isAuthenticated" />
<UFNavBarLogin v-if="!auth.isAuthenticated" @goto-registration="router.push({ name: 'account.register' })" />
<UFNavBarUserCard
v-if="auth.isAuthenticated"
:username="auth.user.full_name"
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "userfrosting",
"type": "module",
"dependencies": {
"@userfrosting/theme-pink-cupcake": "^0.2.15",
"@userfrosting/theme-pink-cupcake": "^0.2.16",
"@userfrosting/sprinkle-admin": "git+https://github.com/userfrosting/sprinkle-admin.git#6.0",
"@userfrosting/sprinkle-account": "git+https://github.com/userfrosting/sprinkle-account.git#6.0",
"@userfrosting/sprinkle-core": "git+https://github.com/userfrosting/sprinkle-core.git#6.0",
Expand Down

0 comments on commit 41e349d

Please sign in to comment.