From 4028f182617f8714cbe87562636dfbac557a5e45 Mon Sep 17 00:00:00 2001 From: Hannes Hansen Date: Fri, 3 Nov 2023 14:30:08 +0100 Subject: [PATCH] restart update select version dialog --- src/app/modules/pages/list/list.component.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/app/modules/pages/list/list.component.ts b/src/app/modules/pages/list/list.component.ts index 962997f..eadb2d9 100644 --- a/src/app/modules/pages/list/list.component.ts +++ b/src/app/modules/pages/list/list.component.ts @@ -119,20 +119,17 @@ export class ListComponent implements OnInit, OnDestroy { next: (_) => { this.ready = true var moduleUpdate = this.availableModuleUpdates[moduleID] - if(moduleUpdate.pending) { - this.router.navigate(['/modules/update/' + encodeURIComponent(moduleID)], {state: {"pending_versions": moduleUpdate.pending_versions}}) - } else { - var dialogRef = this.dialog.open(UpdateModalComponent, { + + var dialogRef = this.dialog.open(UpdateModalComponent, { data: { availableModuleUpdate: moduleUpdate, moduleID: moduleID } - }); + }); - dialogRef?.afterClosed().subscribe(_ => { + dialogRef?.afterClosed().subscribe(_ => { this.loadModules() - }) - } + }) }, error: (err) => { this.ready = true