mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
do not redirect after upgrade, update the view instead
This commit is contained in:
parent
a8d8272edf
commit
a1ff39c9cb
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue