forked from p15670423/monkey
UI: Rename custom PBA filename options
This commit is contained in:
parent
66c2bc492c
commit
a37157b086
|
@ -344,7 +344,11 @@ class ConfigurePageComponent extends AuthComponent {
|
||||||
let formProperties = {};
|
let formProperties = {};
|
||||||
formProperties['schema'] = displayedSchema
|
formProperties['schema'] = displayedSchema
|
||||||
formProperties['uiSchema'] = UiSchema({
|
formProperties['uiSchema'] = UiSchema({
|
||||||
selectedSection: this.state.selectedSection
|
selectedSection: this.state.selectedSection,
|
||||||
|
linux_filename: this.state.configuration.custom_pbas.linux_filename,
|
||||||
|
windows_filename: this.state.configuration.custom_pbas.windows_filename,
|
||||||
|
setPbaFilenameWindows: this.setPbaFilenameWindows,
|
||||||
|
setPbaFilenameLinux: this.setPbaFilenameLinux
|
||||||
})
|
})
|
||||||
formProperties['fields'] = {DescriptionField: HtmlFieldDescription};
|
formProperties['fields'] = {DescriptionField: HtmlFieldDescription};
|
||||||
formProperties['formData'] = this.state.currentFormData;
|
formProperties['formData'] = this.state.currentFormData;
|
||||||
|
@ -369,7 +373,7 @@ class ConfigurePageComponent extends AuthComponent {
|
||||||
|
|
||||||
setPbaFilenameWindows = (filename) => {
|
setPbaFilenameWindows = (filename) => {
|
||||||
let config = this.state.configuration
|
let config = this.state.configuration
|
||||||
config.monkey.post_breach.PBA_windows_filename = filename
|
config.custom_pbas.windows_filename = filename
|
||||||
this.setState({
|
this.setState({
|
||||||
configuration: config
|
configuration: config
|
||||||
})
|
})
|
||||||
|
@ -377,7 +381,7 @@ class ConfigurePageComponent extends AuthComponent {
|
||||||
|
|
||||||
setPbaFilenameLinux = (filename) => {
|
setPbaFilenameLinux = (filename) => {
|
||||||
let config = this.state.configuration
|
let config = this.state.configuration
|
||||||
config.monkey.post_breach.PBA_linux_filename = filename
|
config.custom_pbas.linux_filename = filename
|
||||||
this.setState({
|
this.setState({
|
||||||
configuration: config
|
configuration: config
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue