]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Don't break install plugin on failure
authorChocobozzz <me@florianbigard.com>
Fri, 16 Sep 2022 07:53:27 +0000 (09:53 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 16 Sep 2022 07:53:27 +0000 (09:53 +0200)
client/src/app/+admin/plugins/plugin-search/plugin-search.component.ts

index b02c054a27a56c6098f9812a8e9c85ab404fdce0..c03e37aa5c1bf873ff455a868a42e7e55aa6cdb8 100644 (file)
@@ -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)
+          }
         })
   }
 }