forked from p15670423/monkey
Reworded the text of UnsafeOptionsConfirmationModal to specify that it's about configuration and renamed it to UnsafeConfigOptionsConfirmationModal
This commit is contained in:
parent
fc1f12c24d
commit
b407094a2f
|
@ -5,8 +5,8 @@ import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
|
|||
|
||||
import AuthComponent from '../AuthComponent';
|
||||
import '../../styles/components/configuration-components/ImportConfigModal.scss';
|
||||
import UnsafeOptionsConfirmationModal
|
||||
from '../configuration-components/UnsafeOptionsConfirmationModal.js';
|
||||
import UnsafeConfigOptionsConfirmationModal
|
||||
from './UnsafeConfigOptionsConfirmationModal.js';
|
||||
import UploadStatusIcon, {UploadStatuses} from '../ui-components/UploadStatusIcon';
|
||||
import isUnsafeOptionSelected from '../utils/SafeOptionValidator.js';
|
||||
|
||||
|
@ -102,7 +102,7 @@ const ConfigImportModal = (props: Props) => {
|
|||
|
||||
function showVerificationDialog() {
|
||||
return (
|
||||
<UnsafeOptionsConfirmationModal
|
||||
<UnsafeConfigOptionsConfirmationModal
|
||||
show={showUnsafeOptionsConfirmation}
|
||||
onCancelClick={() => {
|
||||
resetState();
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
import React from 'react';
|
||||
import {Modal, Button} from 'react-bootstrap';
|
||||
|
||||
function UnsafeOptionsConfirmationModal(props) {
|
||||
function UnsafeConfigOptionsConfirmationModal(props) {
|
||||
return (
|
||||
<Modal show={props.show}>
|
||||
<Modal show={props.show}
|
||||
className={'unsafe-config-options-confirmation-modal'}
|
||||
backdropClassName={'unsafe-config-options-confirmation-modal-backdrop'}>
|
||||
<Modal.Body>
|
||||
<h2>
|
||||
<div className='text-center'>Warning</div>
|
||||
</h2>
|
||||
<p className='text-center' style={{'fontSize': '1.2em', 'marginBottom': '2em'}}>
|
||||
Some of the selected options could cause systems to become unstable or malfunction.
|
||||
Some of the configuration options could cause systems to become unstable or malfunction.
|
||||
Are you sure you want to submit the selected settings?
|
||||
</p>
|
||||
<div className='text-center'>
|
||||
|
@ -33,4 +35,4 @@ function UnsafeOptionsConfirmationModal(props) {
|
|||
)
|
||||
}
|
||||
|
||||
export default UnsafeOptionsConfirmationModal;
|
||||
export default UnsafeConfigOptionsConfirmationModal;
|
|
@ -10,8 +10,8 @@ import {faExclamationCircle} from '@fortawesome/free-solid-svg-icons/faExclamati
|
|||
import {formValidationFormats} from '../configuration-components/ValidationFormats';
|
||||
import transformErrors from '../configuration-components/ValidationErrorMessages';
|
||||
import InternalConfig from '../configuration-components/InternalConfig';
|
||||
import UnsafeOptionsConfirmationModal
|
||||
from '../configuration-components/UnsafeOptionsConfirmationModal.js';
|
||||
import UnsafeConfigOptionsConfirmationModal
|
||||
from '../configuration-components/UnsafeConfigOptionsConfirmationModal.js';
|
||||
import UnsafeOptionsWarningModal from '../configuration-components/UnsafeOptionsWarningModal.js';
|
||||
import isUnsafeOptionSelected from '../utils/SafeOptionValidator.js';
|
||||
import ConfigExportModal from '../configuration-components/ExportConfigModal';
|
||||
|
@ -277,7 +277,7 @@ class ConfigurePageComponent extends AuthComponent {
|
|||
|
||||
renderUnsafeOptionsConfirmationModal() {
|
||||
return (
|
||||
<UnsafeOptionsConfirmationModal
|
||||
<UnsafeConfigOptionsConfirmationModal
|
||||
show={this.state.showUnsafeOptionsConfirmation}
|
||||
onCancelClick={this.onUnsafeConfirmationCancelClick}
|
||||
onContinueClick={this.onUnsafeConfirmationContinueClick}
|
||||
|
|
Loading…
Reference in New Issue