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

Implement Sub Groups for the Menu #30

Merged

Conversation

Ilgmi
Copy link
Contributor

@Ilgmi Ilgmi commented Oct 22, 2024

Add divider

{
  id: 'main-menu-divider-admin',
  title: this.$t('drawer.section.admin.title'),
  divider: true,
  visible: true
},

Menu with Sub

{
  id: 'main-menu-button-admin',
  title: this.$t('drawer.section.admin.title'),
  icon: 'mdi-shield-account-variant-outline',
  group: '/admin',
  subGroup:true,
  text: true,
  visible: this.userStore.userRoles.includes('slm-admin'),
  children: [
    {
      id: 'main-menu-button-admin-components',
      title: this.$t('drawer.section.admin.components.title'),
      icon: 'mdi-shield-account-variant-outline',
      to: 'components',
      visible: this.userStore.userRoles.includes('slm-admin'),
    },
  ],
  },

…enus

add divider to the drawer so that the menu can have dividers with or without text
@Ilgmi Ilgmi marked this pull request as ready for review October 22, 2024 14:18
@ma-sch ma-sch merged commit ee3292f into eclipse-slm:develop Oct 30, 2024
6 checks passed
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.

2 participants