mirror of
https://github.com/strapi/strapi.git
synced 2025-11-13 00:29:51 +00:00
commit
cf9ede7e04
@ -11,7 +11,7 @@ import { Button, PopUpWarning } from 'strapi-helper-plugin';
|
|||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||||
import Wrapper from './Wrapper';
|
import Wrapper from './Wrapper';
|
||||||
|
|
||||||
const PLUGINS_WITH_CONFIG = ['content-manager', 'email', 'upload'];
|
const PLUGINS_WITH_CONFIG = ['email', 'upload'];
|
||||||
|
|
||||||
/* eslint-disable react/no-unused-state */
|
/* eslint-disable react/no-unused-state */
|
||||||
class PluginCard extends React.Component {
|
class PluginCard extends React.Component {
|
||||||
@ -57,10 +57,7 @@ class PluginCard extends React.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
handleClickSettings = e => {
|
handleClickSettings = e => {
|
||||||
const settingsPath =
|
const settingsPath = `/plugins/${this.props.plugin.id}/configurations/${this.props.currentEnvironment}`;
|
||||||
this.props.plugin.id === 'content-manager'
|
|
||||||
? '/plugins/content-manager/ctm-configurations/models'
|
|
||||||
: `/plugins/${this.props.plugin.id}/configurations/${this.props.currentEnvironment}`;
|
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user