Typos and small bugfixes for configuration export/import UI.

This commit is contained in:
VakarisZ 2021-06-11 16:06:04 +03:00
parent 5c7bab7a0d
commit fbe9b4f4d7
3 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ const ConfigImportModal = (props: Props) => {
}
function isImportDisabled(): boolean {
return uploadStatus !== UploadStatuses.success
return uploadStatus !== UploadStatuses.success || (showPassword && password === '')
}
function resetState() {

View File

@ -11,7 +11,8 @@ function UnsafeConfigOptionsConfirmationModal(props) {
<div className='text-center'>Warning</div>
</h2>
<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?
</p>
<div className='text-center'>

View File

@ -121,7 +121,6 @@ class ConfigurePageComponent extends AuthComponent {
}
};
// TODO add a safety check to config import
canSafelySubmitConfig(config) {
return !isUnsafeOptionSelected(this.state.schema, config);
}