UI: Add state credentials to ExprotConfigModal
* Delete a advanced key from config
This commit is contained in:
parent
c5c0fe2302
commit
b8c253c3e0
|
@ -192,6 +192,7 @@ class ConfigurePageComponent extends AuthComponent {
|
|||
renderConfigExportModal = () => {
|
||||
return (<ConfigExportModal show={this.state.showConfigExportModal}
|
||||
configuration={this.state.configuration}
|
||||
credentials={this.state.credentials}
|
||||
onHide={() => {
|
||||
this.setState({showConfigExportModal: false});
|
||||
}}/>);
|
||||
|
@ -271,7 +272,7 @@ class ConfigurePageComponent extends AuthComponent {
|
|||
sendConfig() {
|
||||
let config = JSON.parse(JSON.stringify(this.state.configuration))
|
||||
config = reformatConfig(config, true);
|
||||
console.log(config);
|
||||
delete config['advanced'];
|
||||
|
||||
return (
|
||||
this.authFetch(CONFIG_URL,
|
||||
|
|
Loading…
Reference in New Issue