From 078b4716cdd4dbf1b15c1a864ccab999ed3d0e8e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 11 Jan 2021 10:46:02 +0100 Subject: Fix theme npm link --- client/src/app/+admin/plugins/shared/plugin-api.service.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'client/src/app/+admin/plugins/shared') 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( -- cgit v1.2.3