Setup wizard completed + restart call
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user