do not redirect after upgrade, update the view instead

This commit is contained in:
axolotle 2021-05-01 13:01:14 +02:00
parent a8d8272edf
commit a1ff39c9cb

View file

@ -97,7 +97,13 @@ export default {
const uri = id !== null ? `apps/${id}/upgrade` : 'upgrade/' + type
api.put(uri, {}, { key: 'upgrade.' + (id ? 'app' : type), app: id }).then(() => {
this.$router.push({ name: 'tool-logs' })
if (id !== null) {
this.apps = this.apps.filter(app => id !== app.id)
} else if (type === 'apps') {
this.apps = null
} else {
this.system = null
}
})
}
}