Skip to content

Commit

Permalink
chore: added release-log link in controlpanel
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Sep 15, 2023
1 parent 390dc7c commit 54969fb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/config/italiaConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import faBuildingSVG from 'design-comuni-plone-theme/icons/building.svg';
import faFileDownloadSVG from 'design-comuni-plone-theme/icons/file-download.svg';
import faQuestionSVG from 'design-comuni-plone-theme/icons/question-solid.svg';
import bandoSVG from 'design-comuni-plone-theme/icons/bando.svg';
import logSVG from 'design-comuni-plone-theme/icons/log.svg';

import applyRichTextConfig from 'design-comuni-plone-theme/config/RichTextEditor/config';

Expand Down Expand Up @@ -135,6 +136,15 @@ export default function applyConfig(voltoConfig) {
great: 1200,
huge: 1600,
},
controlpanels: [
...(config.settings.controlpanels ?? []),
{
'@id': '/release-log',
group: 'Generali',
title: 'Novità ultimi rilasci',
id: 'release-log',
},
],
controlPanelsIcons: {
...config.settings.controlPanelsIcons,
'dropdown-menu-settings': menuSVG,
Expand All @@ -143,6 +153,7 @@ export default function applyConfig(voltoConfig) {
'design-plone-settings': contentSVG,
'bandi-settings': bookSVG,
'social-settings': shareSVG,
'release-log': logSVG,
},
defaultBlockType: 'text',
defaultExcludedFromSearch: {
Expand Down
3 changes: 3 additions & 0 deletions src/icons/log.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ export const italiaRoutes = [
path: '/**/search',
component: Search,
},
{
path: '/controlpanel/release-log',
component: ReleaseLog,
},
{
path: '/release-log',
component: ReleaseLog,
Expand Down

0 comments on commit 54969fb

Please sign in to comment.