aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/plugins/shared/plugin-api.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+admin/plugins/shared/plugin-api.service.ts')
-rw-r--r--client/src/app/+admin/plugins/shared/plugin-api.service.ts8
1 files changed, 8 insertions, 0 deletions
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 {
134 .pipe(catchError(res => this.restExtractor.handleError(res))) 134 .pipe(catchError(res => this.restExtractor.handleError(res)))
135 } 135 }
136 136
137 getPluginOrThemeHref (type: PluginType, name: string) {
138 const typeString = type === PluginType.PLUGIN
139 ? 'plugin'
140 : 'theme'
141
142 return `https://www.npmjs.com/package/peertube-${typeString}-${name}`
143 }
144
137 private translateSettingsLabel (npmName: string, res: RegisteredServerSettings): Observable<RegisteredServerSettings> { 145 private translateSettingsLabel (npmName: string, res: RegisteredServerSettings): Observable<RegisteredServerSettings> {
138 return this.pluginService.translationsObservable 146 return this.pluginService.translationsObservable
139 .pipe( 147 .pipe(