From a1ff39c9cb31f448b399fc04cecaa752bfed8bc9 Mon Sep 17 00:00:00 2001 From: axolotle Date: Sat, 1 May 2021 13:01:14 +0200 Subject: [PATCH] do not redirect after upgrade, update the view instead --- app/src/views/update/SystemUpdate.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/views/update/SystemUpdate.vue b/app/src/views/update/SystemUpdate.vue index f7a0f156..7deeb8e6 100644 --- a/app/src/views/update/SystemUpdate.vue +++ b/app/src/views/update/SystemUpdate.vue @@ -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 + } }) } }