fix self-update

This commit is contained in:
Mohit Panjwani
2019-11-19 11:29:10 +05:30
parent 19f74332dd
commit 5572571840
7 changed files with 209983 additions and 2 deletions

View File

@ -69,6 +69,7 @@ export default {
let res = await window.axios.post('/api/update', this.updateData)
if (res.data.success) {
await window.axios.post('/api/update/finish', this.updateData)
this.isUpdateAvailable = false
window.toastr['success'](this.$t('settings.update_app.update_success'))
this.currentVersion = this.updateData.version
@ -83,6 +84,7 @@ export default {
this.isUpdating = false
},
async checkUpdate () {
try {
this.isCheckingforUpdate = true