Dont reload the list when cancelling the remove dialog

This commit is contained in:
jliddev
2021-03-15 13:28:59 -05:00
parent ea71c98bef
commit 44db18655f

View File

@@ -542,10 +542,12 @@ export class MyAddonsComponent implements OnInit, OnDestroy, AfterViewInit {
} else {
return this.getRemoveDependenciesPrompt(addon.name, addon.dependencies.length)
.afterClosed()
.pipe(switchMap((result) => from(this.addonService.removeAddon(addon, result))));
.pipe(
switchMap((result) => from(this.addonService.removeAddon(addon, result))),
switchMap(() => from(this.loadAddons(this.selectedInstallation)))
);
}
}),
switchMap(() => from(this.loadAddons(this.selectedInstallation)))
})
)
.subscribe();
}