UI: Add state credentials to ExprotConfigModal

* Delete a advanced key from config
This commit is contained in:
Ilija Lazoroski 2022-07-21 13:49:31 +02:00
parent c5c0fe2302
commit b8c253c3e0
1 changed files with 2 additions and 1 deletions

View File

@ -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,