refactor update listener and reload browser window on update success

This commit is contained in:
Mohit Panjwani
2019-11-23 13:15:58 +05:30
parent 7fd1224502
commit 07601a7130
6 changed files with 10 additions and 6 deletions

View File

@ -73,6 +73,10 @@ export default {
this.isUpdateAvailable = false
window.toastr['success'](this.$t('settings.update_app.update_success'))
this.currentVersion = this.updateData.version
setTimeout(() => {
location.reload()
}, 2000)
} else {
console.log(res.data)
window.toastr['error'](res.data.error)