mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 10:55:37 +00:00
Change settings confirm modal type & change copy locale submit button label
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
95a4f340bc
commit
6db4e0c0f3
@ -7,6 +7,7 @@ import { Inputs as Input, Header } from '@buffetjs/custom';
|
||||
import {
|
||||
BackHeader,
|
||||
LoadingIndicatorPage,
|
||||
ModalConfirm,
|
||||
PopUpWarning,
|
||||
// contexts
|
||||
useGlobalContext,
|
||||
@ -204,13 +205,13 @@ const SettingsViewWrapper = ({
|
||||
toggleWarningCancel();
|
||||
}}
|
||||
/>
|
||||
<PopUpWarning
|
||||
<ModalConfirm
|
||||
isOpen={showWarningSubmit}
|
||||
toggleModal={toggleWarningSubmit}
|
||||
toggle={toggleWarningSubmit}
|
||||
content={{
|
||||
message: `${pluginId}.popUpWarning.warning.updateAllSettings`,
|
||||
id: `${pluginId}.popUpWarning.warning.updateAllSettings`,
|
||||
}}
|
||||
popUpWarningType="danger"
|
||||
type="success"
|
||||
onConfirm={async () => {
|
||||
await onConfirmSubmit();
|
||||
toggleWarningSubmit();
|
||||
|
||||
@ -101,7 +101,8 @@ const CMEditViewCopyLocale = ({ appLocales, currentLocale, localizations, readPe
|
||||
<ModalConfirm
|
||||
showButtonLoader={isLoading}
|
||||
confirmButtonLabel={{
|
||||
id: 'form.button.finish',
|
||||
id: getTrad('CMEditViewCopyLocale.submit-text'),
|
||||
defaultMessage: 'Yes, fill in',
|
||||
}}
|
||||
content={{
|
||||
id: 'CMEditViewCopyLocale.ModalConfirm.content',
|
||||
|
||||
@ -17,6 +17,7 @@
|
||||
"CMEditViewCopyLocale.copy-success": "Locale copied",
|
||||
"CMEditViewCopyLocale.copy-failure": "Failed to copy locale",
|
||||
"CMEditViewCopyLocale.copy-text": "Fill in from another locale",
|
||||
"CMEditViewCopyLocale.submit-text": "Yes, fill in",
|
||||
"Field.localized": "This value is unique for the selected locale",
|
||||
"Field.not-localized": "This value is common to all locales",
|
||||
"Settings.list.description": "Configure the settings for the internationalization plugin",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user