Small optimizations
parent
1587a979ab
commit
84c0afab0c
|
@ -25,6 +25,9 @@ const ActionButtons = ({ diff }) => {
|
||||||
<ActionButtonsStyling>
|
<ActionButtonsStyling>
|
||||||
<Button disabled={isEmpty(diff.fileConfig)} color="primary" label="Import" onClick={() => openModal('import')} />
|
<Button disabled={isEmpty(diff.fileConfig)} color="primary" label="Import" onClick={() => openModal('import')} />
|
||||||
<Button disabled={isEmpty(diff.fileConfig)} color="primary" label="Export" onClick={() => openModal('export')} />
|
<Button disabled={isEmpty(diff.fileConfig)} color="primary" label="Export" onClick={() => openModal('export')} />
|
||||||
|
{!isEmpty(diff.diff) && (
|
||||||
|
<h4 style={{ display: 'inline' }}>{Object.keys(diff.diff).length} {Object.keys(diff.diff).length === 1 ? "config change" : "config changes"}</h4>
|
||||||
|
)}
|
||||||
<ConfirmModal
|
<ConfirmModal
|
||||||
isOpen={modalIsOpen}
|
isOpen={modalIsOpen}
|
||||||
onClose={closeModal}
|
onClose={closeModal}
|
||||||
|
|
|
@ -23,7 +23,6 @@ export default strapi => {
|
||||||
blockerComponent: null,
|
blockerComponent: null,
|
||||||
blockerComponentProps: {},
|
blockerComponentProps: {},
|
||||||
description: pluginDescription,
|
description: pluginDescription,
|
||||||
icon: pluginPkg.strapi.icon,
|
|
||||||
id: pluginId,
|
id: pluginId,
|
||||||
initializer: Initializer,
|
initializer: Initializer,
|
||||||
injectedComponents: [],
|
injectedComponents: [],
|
||||||
|
|
|
@ -7,5 +7,7 @@
|
||||||
"role-permissions",
|
"role-permissions",
|
||||||
"webhooks"
|
"webhooks"
|
||||||
],
|
],
|
||||||
"exclude": []
|
"exclude": [
|
||||||
|
"core-store.plugin_users-permissions_grant"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"description": "Manage your Strapi database configuration as partial json files which can be imported/exported across environments. ",
|
"description": "Manage your Strapi database configuration as partial json files which can be imported/exported across environments. ",
|
||||||
"strapi": {
|
"strapi": {
|
||||||
"name": "config-sync",
|
"name": "config-sync",
|
||||||
"icon": "plug",
|
"icon": "sync",
|
||||||
"description": "Manage your Strapi database configuration as partial json files which can be imported/exported across environments. "
|
"description": "Manage your Strapi database configuration as partial json files which can be imported/exported across environments. "
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Reference in New Issue