Skip to content

Commit

Permalink
feat: remove 'add' group from user menu
Browse files Browse the repository at this point in the history
 - The jaen frame that contains the media browser is not working properly
 - New page is not really needed at the moment

This change could very well be temporary, but for now it is better to
remove the 'add' group from the user menu.
  • Loading branch information
kleberbaum committed Jan 30, 2025
1 parent ece1a84 commit 96b668e
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions packages/gatsby-plugin-jaen/src/slices/jaen-frame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,23 +87,23 @@ const Slice: React.FC<SliceProps> = props => {
const isJaenAdmin = checkUserRoles(auth.user, ['jaen:admin'])

if (isJaenAdmin) {
extendMenu('user', {
group: 'add',
items: {
addPage: {
label: 'New page',
icon: FaSitemap,
path: `/cms/pages/new/#${btoa(props.jaenPageId)}`
},
addMedia: {
label: 'New media',
icon: FaImage,
onClick: () => {
mediaModal.toggleModal()
}
}
}
})
// extendMenu('user', {
// group: 'add',
// items: {
// addPage: {
// label: 'New page',
// icon: FaSitemap,
// path: `/cms/pages/new/#${btoa(props.jaenPageId)}`
// },
// addMedia: {
// label: 'New media',
// icon: FaImage,
// onClick: () => {
// mediaModal.toggleModal()
// }
// }
// }
// })

// Add jaenCMS user menu
extendMenu('user', {
Expand Down

0 comments on commit 96b668e

Please sign in to comment.