mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 10:23:34 +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;
|
||||
});
|
||||
|
||||
console.log(createdRoutes);
|
||||
|
||||
const menuItems = [
|
||||
{
|
||||
id: 'global',
|
||||
|
||||
@ -3,6 +3,7 @@ import pluginLogo from './assets/images/logo.svg';
|
||||
import App from './containers/App';
|
||||
import trads from './translations';
|
||||
import pluginId from './pluginId';
|
||||
import getTrad from './utils/getTrad';
|
||||
|
||||
export default strapi => {
|
||||
const pluginDescription =
|
||||
@ -24,6 +25,20 @@ export default strapi => {
|
||||
name: pluginPkg.strapi.name,
|
||||
pluginLogo,
|
||||
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,
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user