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

@@ -55,11 +55,19 @@
this.set_lang();
})
.catch(error => { console.log(error) });
},
get_version: function() {
axios.get('/api/update/get-version', { timeout: 60000 })
.then(response => {
if(response.data.status) window.current_version = response.data.current_version
})
.catch(error => { console.log(error) });
}
},
created: function() {
window.config = {}
this.get_config();
this.get_version();
}
}
</script>