mirror of
https://github.com/strapi/strapi.git
synced 2025-11-10 07:10:11 +00:00
Add setting link
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
09d1a6af3a
commit
bf6a2464ab
@ -31,6 +31,8 @@ function SettingsPage() {
|
|||||||
return refArray.findIndex(obj => obj.key === route.key) === index;
|
return refArray.findIndex(obj => obj.key === route.key) === index;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.log(createdRoutes);
|
||||||
|
|
||||||
const menuItems = [
|
const menuItems = [
|
||||||
{
|
{
|
||||||
id: 'global',
|
id: 'global',
|
||||||
|
|||||||
@ -3,6 +3,7 @@ import pluginLogo from './assets/images/logo.svg';
|
|||||||
import App from './containers/App';
|
import App from './containers/App';
|
||||||
import trads from './translations';
|
import trads from './translations';
|
||||||
import pluginId from './pluginId';
|
import pluginId from './pluginId';
|
||||||
|
import getTrad from './utils/getTrad';
|
||||||
|
|
||||||
export default strapi => {
|
export default strapi => {
|
||||||
const pluginDescription =
|
const pluginDescription =
|
||||||
@ -24,6 +25,20 @@ export default strapi => {
|
|||||||
name: pluginPkg.strapi.name,
|
name: pluginPkg.strapi.name,
|
||||||
pluginLogo,
|
pluginLogo,
|
||||||
preventComponentRendering: false,
|
preventComponentRendering: false,
|
||||||
|
settings: {
|
||||||
|
global: [
|
||||||
|
{
|
||||||
|
title: {
|
||||||
|
id: getTrad('settings.link.label'),
|
||||||
|
defaultMessage: 'Media Library',
|
||||||
|
},
|
||||||
|
name: 'media-library',
|
||||||
|
to: `${strapi.settingsBaseURL}/media-library`,
|
||||||
|
// TODO
|
||||||
|
Component: () => 'COMING SOON',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
trads,
|
trads,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user