forked from p15670423/monkey
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 = () => {
|
renderConfigExportModal = () => {
|
||||||
return (<ConfigExportModal show={this.state.showConfigExportModal}
|
return (<ConfigExportModal show={this.state.showConfigExportModal}
|
||||||
configuration={this.state.configuration}
|
configuration={this.state.configuration}
|
||||||
|
credentials={this.state.credentials}
|
||||||
onHide={() => {
|
onHide={() => {
|
||||||
this.setState({showConfigExportModal: false});
|
this.setState({showConfigExportModal: false});
|
||||||
}}/>);
|
}}/>);
|
||||||
|
@ -271,7 +272,7 @@ class ConfigurePageComponent extends AuthComponent {
|
||||||
sendConfig() {
|
sendConfig() {
|
||||||
let config = JSON.parse(JSON.stringify(this.state.configuration))
|
let config = JSON.parse(JSON.stringify(this.state.configuration))
|
||||||
config = reformatConfig(config, true);
|
config = reformatConfig(config, true);
|
||||||
console.log(config);
|
delete config['advanced'];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
this.authFetch(CONFIG_URL,
|
this.authFetch(CONFIG_URL,
|
||||||
|
|
Loading…
Reference in New Issue