aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/views/Config.js
diff options
context:
space:
mode:
authortherealbobo2020-09-14 07:45:18 +0000
committertherealbobo2020-09-14 07:45:18 +0000
commitb5f3cd7accf3699fd7ed3053d671a4c254dfeaa3 (patch)
treea5a4252b12a0d2f1707bdb68322cd45d59d3347e /frontend/src/views/Config.js
parentfdf53489eced715e1586f582882cb064721a965e (diff)
auto startup configuration
Diffstat (limited to 'frontend/src/views/Config.js')
-rw-r--r--frontend/src/views/Config.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/frontend/src/views/Config.js b/frontend/src/views/Config.js
index 438e2d6..9b220d9 100644
--- a/frontend/src/views/Config.js
+++ b/frontend/src/views/Config.js
@@ -4,7 +4,6 @@ import {
import React, {Component, useState} from 'react';
import './Config.scss';
import {Button, ButtonGroup, ToggleButton, Col, Container, Form, FormControl, InputGroup, Modal, Row, Table} from "react-bootstrap";
-import axios from 'axios'
import {createCurlCommand} from '../utils';
class Config extends Component {
@@ -74,9 +73,11 @@ class Config extends Component {
fetch('/setup', requestOptions)
- .then(function(response){
- console.log(response.status);
- console.log(response);
+ .then(response => {
+ if (response.status === 202 ){
+ //this.setState({showConfig:false});
+ this.props.onHide();
+ }
}
);