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

Project sharing #5158

Merged
merged 8 commits into from
Oct 17, 2024
Merged

Project sharing #5158

merged 8 commits into from
Oct 17, 2024

Conversation

YohannParis
Copy link
Member

Fix #5112

This pull request includes several updates to the packages/client/hmi-client to improve user role management, menu item labeling, and project filtering. The most important changes include adding a computed property for admin checks, updating menu item labels, and refining project filtering logic.

User Role Management:

  • stores/auth.ts: Added a computed property isAdmin to check if the user has an admin role.
  • tera-navbar.vue: Updated visibility logic for user menu items to use the new isAdmin property.

Menu Item Labeling:

  • tera-project-menu.vue: Updated labels for menu items (renameMenuItem to editDetailsMenuItem, removeMenuItem to deleteMenuItem, and copyMenuItem to copy).

Project Filtering:

  • Home.vue: Refined the filtering logic to include projects that the user can edit or view if they are not public.

Miscellaneous:

  • Home.vue: Cleaned up the template code by removing commented-out sections.
  • tera-project-menu.vue: Removed the separatorMenuItem and adjusted the logic for adding menu items based on user permissions and admin status.

@YohannParis YohannParis merged commit b91ee20 into main Oct 17, 2024
4 checks passed
@YohannParis YohannParis deleted the project-sharing branch October 17, 2024 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TASK]: Project sharing debugging
3 participants