ui: add missing semicolons to ConfigurePage.js

This commit is contained in:
Mike Salvatore 2021-03-01 10:14:08 -05:00
parent f6fc380fd7
commit 5050f33f1a
1 changed files with 7 additions and 7 deletions

View File

@ -12,7 +12,7 @@ import {formValidationFormats} from '../configuration-components/ValidationForma
import transformErrors from '../configuration-components/ValidationErrorMessages'; import transformErrors from '../configuration-components/ValidationErrorMessages';
import InternalConfig from '../configuration-components/InternalConfig'; import InternalConfig from '../configuration-components/InternalConfig';
import UnsafeOptionsConfirmationModal from '../configuration-components/UnsafeOptionsConfirmationModal.js'; import UnsafeOptionsConfirmationModal from '../configuration-components/UnsafeOptionsConfirmationModal.js';
import isUnsafeOptionSelected from '../utils/SafeOptionValidator.js' import isUnsafeOptionSelected from '../utils/SafeOptionValidator.js';
const ATTACK_URL = '/api/attack'; const ATTACK_URL = '/api/attack';
const CONFIG_URL = '/api/configuration/island'; const CONFIG_URL = '/api/configuration/island';
@ -79,7 +79,7 @@ class ConfigurePageComponent extends AuthComponent {
}; };
onUnsafeConfirmationCancelClick = () => { onUnsafeConfirmationCancelClick = () => {
this.setState({showUnsafeOptionsConfirmation: false}) this.setState({showUnsafeOptionsConfirmation: false});
} }
onUnsafeConfirmationContinueClick = () => { onUnsafeConfirmationContinueClick = () => {
@ -103,9 +103,9 @@ class ConfigurePageComponent extends AuthComponent {
onSubmit = () => { onSubmit = () => {
if (this.state.selectedSection === 'attack') { if (this.state.selectedSection === 'attack') {
this.matrixSubmit() this.matrixSubmit();
} else { } else {
this.attemptConfigSubmit() this.attemptConfigSubmit();
} }
}; };
@ -142,7 +142,7 @@ class ConfigurePageComponent extends AuthComponent {
this.updateConfigSection(); this.updateConfigSection();
this.setState({lastAction: 'submit_attempt'}, () => { this.setState({lastAction: 'submit_attempt'}, () => {
if (this.canSafelySubmitConfig(this.state.configuration)) { if (this.canSafelySubmitConfig(this.state.configuration)) {
this.configSubmit() this.configSubmit();
} else { } else {
this.setState({showUnsafeOptionsConfirmation: true}); this.setState({showUnsafeOptionsConfirmation: true});
} }
@ -240,7 +240,7 @@ class ConfigurePageComponent extends AuthComponent {
onCancelClick={this.onUnsafeConfirmationCancelClick} onCancelClick={this.onUnsafeConfirmationCancelClick}
onContinueClick={this.onUnsafeConfirmationContinueClick} onContinueClick={this.onUnsafeConfirmationContinueClick}
/> />
) );
} }
userChangedConfig() { userChangedConfig() {
@ -341,7 +341,7 @@ class ConfigurePageComponent extends AuthComponent {
lastAction: 'import_success' lastAction: 'import_success'
}, () => { }, () => {
this.sendConfig(); this.sendConfig();
this.setInitialConfig(this.state.importCandidateConfig) this.setInitialConfig(this.state.importCandidateConfig);
}); });
this.currentFormData = {}; this.currentFormData = {};
} }