X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Badmin%2Fplugins%2Fshared%2Fplugin-api.service.ts;h=fad30576b3e552572dbea46abeb9f940c83dc62b;hb=078b4716cdd4dbf1b15c1a864ccab999ed3d0e8e;hp=b28d46df4a199e7407a384cb1a6eb20318b2906b;hpb=fcb771222854d4239f97b60969e3f11e434a2239;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+admin/plugins/shared/plugin-api.service.ts b/client/src/app/+admin/plugins/shared/plugin-api.service.ts index b28d46df4..fad30576b 100644 --- a/client/src/app/+admin/plugins/shared/plugin-api.service.ts +++ b/client/src/app/+admin/plugins/shared/plugin-api.service.ts @@ -134,6 +134,14 @@ export class PluginApiService { .pipe(catchError(res => this.restExtractor.handleError(res))) } + getPluginOrThemeHref (type: PluginType, name: string) { + const typeString = type === PluginType.PLUGIN + ? 'plugin' + : 'theme' + + return `https://www.npmjs.com/package/peertube-${typeString}-${name}` + } + private translateSettingsLabel (npmName: string, res: RegisteredServerSettings): Observable { return this.pluginService.translationsObservable .pipe(