Skip to content

Commit

Permalink
restart update select version dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
hahahannes committed Nov 3, 2023
1 parent 4412726 commit 4028f18
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/app/modules/pages/list/list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4028f18

Please sign in to comment.