Adding version info
This commit is contained in:
@ -23,7 +23,7 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
check_update: function() {
|
||||
check_version: function() {
|
||||
axios.get('/api/update/get-version', { timeout: 60000 })
|
||||
.then(response => {
|
||||
if(response.data.status) {
|
||||
@ -42,7 +42,7 @@
|
||||
if(response.data.status) {
|
||||
if(response.data.message == "Update successfully launched"){
|
||||
this.update_launched = true
|
||||
this.check_interval = setInterval(function(){ this.check_update(); }.bind(this), 3000);
|
||||
this.check_interval = setInterval(function(){ this.check_version(); }.bind(this), 3000);
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user