forked from p15670423/monkey
Typos and small bugfixes for configuration export/import UI.
This commit is contained in:
parent
5c7bab7a0d
commit
fbe9b4f4d7
|
@ -81,7 +81,7 @@ const ConfigImportModal = (props: Props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
function isImportDisabled(): boolean {
|
function isImportDisabled(): boolean {
|
||||||
return uploadStatus !== UploadStatuses.success
|
return uploadStatus !== UploadStatuses.success || (showPassword && password === '')
|
||||||
}
|
}
|
||||||
|
|
||||||
function resetState() {
|
function resetState() {
|
||||||
|
|
|
@ -11,7 +11,8 @@ function UnsafeConfigOptionsConfirmationModal(props) {
|
||||||
<div className='text-center'>Warning</div>
|
<div className='text-center'>Warning</div>
|
||||||
</h2>
|
</h2>
|
||||||
<p className='text-center' style={{'fontSize': '1.2em', 'marginBottom': '2em'}}>
|
<p className='text-center' style={{'fontSize': '1.2em', 'marginBottom': '2em'}}>
|
||||||
Some of the configuration options could cause systems to become unstable or malfunction.
|
Some of the configuration options selected could cause systems
|
||||||
|
to become unstable or malfunction.<br/><br/>
|
||||||
Are you sure you want to submit the selected settings?
|
Are you sure you want to submit the selected settings?
|
||||||
</p>
|
</p>
|
||||||
<div className='text-center'>
|
<div className='text-center'>
|
||||||
|
|
|
@ -121,7 +121,6 @@ class ConfigurePageComponent extends AuthComponent {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO add a safety check to config import
|
|
||||||
canSafelySubmitConfig(config) {
|
canSafelySubmitConfig(config) {
|
||||||
return !isUnsafeOptionSelected(this.state.schema, config);
|
return !isUnsafeOptionSelected(this.state.schema, config);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue