Setup Wizard - Git check

This commit is contained in:
NGPixel
2017-03-25 18:21:14 -04:00
parent 08a1cbfe82
commit 6698ca094d
5 changed files with 74 additions and 24 deletions

View File

@@ -205,8 +205,9 @@ jQuery(document).ready(function ($) {
let self = this
this.state = 'gitcheck'
this.loading = true
self.dbcheck = {
self.gitcheck = {
ok: false,
results: [],
error: ''
}
@@ -214,6 +215,7 @@ jQuery(document).ready(function ($) {
axios.post('/gitcheck', self.conf).then(resp => {
if (resp.data.ok === true) {
self.gitcheck.ok = true
self.gitcheck.results = resp.data.results
} else {
self.gitcheck.ok = false
self.gitcheck.error = resp.data.error