mirror of
https://github.com/strapi/strapi.git
synced 2025-11-12 00:03:40 +00:00
Move cm link in the menu
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
4dc122664f
commit
d2b2ea50f0
@ -7,7 +7,6 @@ import configureStore from './core/store/configureStore';
|
|||||||
import { Plugin } from './core/apis';
|
import { Plugin } from './core/apis';
|
||||||
import App from './pages/App';
|
import App from './pages/App';
|
||||||
import Providers from './components/Providers';
|
import Providers from './components/Providers';
|
||||||
|
|
||||||
import Theme from './components/Theme';
|
import Theme from './components/Theme';
|
||||||
import languageNativeNames from './translations/languageNativeNames';
|
import languageNativeNames from './translations/languageNativeNames';
|
||||||
import {
|
import {
|
||||||
@ -17,7 +16,6 @@ import {
|
|||||||
MUTATE_SINGLE_TYPES_LINKS,
|
MUTATE_SINGLE_TYPES_LINKS,
|
||||||
} from './exposedHooks';
|
} from './exposedHooks';
|
||||||
import injectionZones from './injectionZones';
|
import injectionZones from './injectionZones';
|
||||||
import adminPermissions from './permissions';
|
|
||||||
import themes from './themes';
|
import themes from './themes';
|
||||||
|
|
||||||
window.strapi = {
|
window.strapi = {
|
||||||
@ -175,19 +173,6 @@ class StrapiApp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootstrapAdmin = async () => {
|
bootstrapAdmin = async () => {
|
||||||
// TODO move link in menu
|
|
||||||
this.addCorePluginMenuLink({
|
|
||||||
// TODO
|
|
||||||
to: `/plugins/content-manager`,
|
|
||||||
icon: 'book-open',
|
|
||||||
intlLabel: {
|
|
||||||
id: `content-manager.plugin.name`,
|
|
||||||
defaultMessage: 'Content manager',
|
|
||||||
},
|
|
||||||
// permissions: pluginPermissions.main,
|
|
||||||
permissions: adminPermissions.contentManager.main,
|
|
||||||
});
|
|
||||||
|
|
||||||
this.createHook(INJECT_COLUMN_IN_TABLE);
|
this.createHook(INJECT_COLUMN_IN_TABLE);
|
||||||
this.createHook(MUTATE_COLLECTION_TYPES_LINKS);
|
this.createHook(MUTATE_COLLECTION_TYPES_LINKS);
|
||||||
this.createHook(MUTATE_SINGLE_TYPES_LINKS);
|
this.createHook(MUTATE_SINGLE_TYPES_LINKS);
|
||||||
|
|||||||
@ -1,14 +1,29 @@
|
|||||||
import React, { memo } from 'react';
|
import React, { memo } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
|
import { BaselineAlignment } from '@strapi/helper-plugin';
|
||||||
import { Footer, Header, LinksContainer, LinksSection, SectionTitle } from './compos';
|
import { Footer, Header, LinksContainer, LinksSection, SectionTitle } from './compos';
|
||||||
|
import LeftMenuLink from './compos/Link';
|
||||||
|
|
||||||
import Wrapper from './Wrapper';
|
import Wrapper from './Wrapper';
|
||||||
|
|
||||||
const LeftMenu = ({ generalSectionLinks, pluginsSectionLinks }) => {
|
const LeftMenu = ({ generalSectionLinks, pluginsSectionLinks }) => {
|
||||||
return (
|
return (
|
||||||
<Wrapper>
|
<Wrapper>
|
||||||
<Header />
|
<Header />
|
||||||
|
|
||||||
<LinksContainer>
|
<LinksContainer>
|
||||||
|
<BaselineAlignment top size="16px" />
|
||||||
|
<LeftMenuLink
|
||||||
|
to="/plugins/content-manager"
|
||||||
|
icon="book-open"
|
||||||
|
intlLabel={{
|
||||||
|
id: `content-manager.plugin.name`,
|
||||||
|
defaultMessage: 'Content manager',
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<BaselineAlignment bottom size="2px" />
|
||||||
|
|
||||||
{pluginsSectionLinks.length > 0 && (
|
{pluginsSectionLinks.length > 0 && (
|
||||||
<>
|
<>
|
||||||
<SectionTitle>
|
<SectionTitle>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user