From 81ed2de85c4d1cedcb5b4d58f3bfa39c3601ed2a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 16 Sep 2022 09:53:27 +0200 Subject: Don't break install plugin on failure --- .../src/app/+admin/plugins/plugin-search/plugin-search.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'client') diff --git a/client/src/app/+admin/plugins/plugin-search/plugin-search.component.ts b/client/src/app/+admin/plugins/plugin-search/plugin-search.component.ts index b02c054a2..c03e37aa5 100644 --- a/client/src/app/+admin/plugins/plugin-search/plugin-search.component.ts +++ b/client/src/app/+admin/plugins/plugin-search/plugin-search.component.ts @@ -145,7 +145,11 @@ export class PluginSearchComponent implements OnInit { plugin.installed = true }, - error: err => this.notifier.error(err.message) + error: err => { + this.installing[plugin.npmName] = false + + this.notifier.error(err.message) + } }) } } -- cgit v1.2.3