diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-11 10:46:02 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-11 10:46:02 +0100 |
commit | 078b4716cdd4dbf1b15c1a864ccab999ed3d0e8e (patch) | |
tree | de9f00d823e5fcdcf5b6ae9492d0ae868673cac1 /client/src/app/+admin/plugins/shared/plugin-api.service.ts | |
parent | fcb771222854d4239f97b60969e3f11e434a2239 (diff) | |
download | PeerTube-078b4716cdd4dbf1b15c1a864ccab999ed3d0e8e.tar.gz PeerTube-078b4716cdd4dbf1b15c1a864ccab999ed3d0e8e.tar.zst PeerTube-078b4716cdd4dbf1b15c1a864ccab999ed3d0e8e.zip |
Fix theme npm link
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.ts | 8 |
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( |