Reset state and then set newly reset state to web UI
This commit is contained in:
parent
ec2215ec76
commit
45e427caf9
|
@ -168,15 +168,12 @@ web.reset = function () {
|
|||
}
|
||||
fetch('/reset', opts)
|
||||
.then(web.useJson)
|
||||
.then(web.resetSuccess)
|
||||
.then(setState)
|
||||
.catch(err => {
|
||||
console.error('Error posting to /reset');
|
||||
console.error(err);
|
||||
})
|
||||
};
|
||||
web.resetSuccess = function (res) {
|
||||
console.dir(res)
|
||||
}
|
||||
web.restart = function () {
|
||||
const opts = {
|
||||
method : 'POST',
|
||||
|
|
Loading…
Reference in New Issue