Setup wizard completed + restart call

This commit is contained in:
NGPixel
2017-03-28 22:29:53 -04:00
parent df4da74539
commit 4dd79170c5
4 changed files with 79 additions and 4 deletions

View File

@@ -267,7 +267,18 @@ jQuery(document).ready(function ($) {
}, 1000)
},
finish: function (ev) {
let self = this
self.state = 'restart'
_.delay(() => {
axios.post('/restart', {}).then(resp => {
_.delay(() => {
window.location.assign(self.conf.host)
}, 10000)
}).catch(err => {
window.alert(err.message)
})
}, 1000)
}
}
})