Adding version info

This commit is contained in:
Félix Aime
2021-02-19 14:08:14 +01:00
parent ecf1281290
commit 7acc61d80d
2 changed files with 10 additions and 2 deletions

View File

@ -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);
}
}
})