Skip to content
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

feat: Add admin routing in UserDropdown for easier use in mobile #292

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

HugoRCD
Copy link
Owner

@HugoRCD HugoRCD commented Nov 8, 2024

Fixes #266

Add admin routing in UserDropdown.vue for easier use on mobile.

  • Import Role from @shelve/types.
  • Add adminNavigations by calling getNavigation('admin').
  • Add adminNavItem by mapping adminNavigations to { label, icon, to }.
  • Add adminNavItem to items array if user.value?.role === Role.ADMIN.
  • Add adminNavItem to items array before the Sign out item.

For more details, open the Copilot Workspace session.

Fixes #266

Add admin routing in `UserDropdown.vue` for easier use on mobile.

* Import `Role` from `@shelve/types`.
* Add `adminNavigations` by calling `getNavigation('admin')`.
* Add `adminNavItem` by mapping `adminNavigations` to `{ label, icon, to }`.
* Add `adminNavItem` to `items` array if `user.value?.role === Role.ADMIN`.
* Add `adminNavItem` to `items` array before the `Sign out` item.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/HugoRCD/shelve/issues/266?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link

vercel bot commented Nov 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
shelve-app ⬜️ Ignored (Inspect) Visit Preview Nov 8, 2024 11:24am
shelve-lp ⬜️ Skipped (Inspect) Nov 8, 2024 11:24am

@vercel vercel bot temporarily deployed to Preview – shelve-lp November 8, 2024 11:23 Inactive
Copy link

github-actions bot commented Nov 8, 2024

Thank you for following the naming conventions! 🙏

@github-actions github-actions bot added the feature New feature or request label Nov 8, 2024
@HugoRCD HugoRCD merged commit 6e40ac0 into main Nov 8, 2024
13 checks passed
@HugoRCD HugoRCD deleted the feat/266 branch November 8, 2024 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Add Admin routing in UserDropdown for easier use in mobile
1 participant