diff --git a/admin/src/components/ActionButtons/index.jsx b/admin/src/components/ActionButtons/index.jsx index 3cc94f1..9c17c88 100644 --- a/admin/src/components/ActionButtons/index.jsx +++ b/admin/src/components/ActionButtons/index.jsx @@ -8,7 +8,7 @@ import { getFetchClient, useNotification } from '@strapi/strapi/admin'; import { useIntl } from 'react-intl'; import ConfirmModal from '../ConfirmModal'; -import { exportAllConfig, importAllConfig } from '../../state/actions/Config'; +import { exportAllConfig, importAllConfig, downloadZip } from '../../state/actions/Config'; const ActionButtons = () => { const { post, get } = getFetchClient(); @@ -37,6 +37,7 @@ const ActionButtons = () => { )} onSubmit={(force) => dispatch(exportAllConfig(partialDiff, toggleNotification, formatMessage, post, get))} /> + {!isEmpty(partialDiff) && ( {Object.keys(partialDiff).length} {Object.keys(partialDiff).length === 1 ? "config change" : "config changes"} )} diff --git a/admin/src/translations/en.json b/admin/src/translations/en.json index f20500f..a585ed1 100644 --- a/admin/src/translations/en.json +++ b/admin/src/translations/en.json @@ -28,6 +28,7 @@ "ConfigDiff.Database": "Database", "Buttons.Export": "Export", + "Buttons.DownloadConfig": "Download Config", "Buttons.Import": "Import", "FirstExport.Message": "Looks like this is your first time using config-sync for this project.",