Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Help translators to translate this sentence

Chocobozzzdadd42013437
diff --git a/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.html b/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.html
index 9f77d4a18a..13d5068fca 100644
--- a/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.html
+++ b/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.html
@@ -17,6 +17,10 @@
}
@if (!hasRegisteredSettings()) {
- <div i18n class="no-settings">This {{ pluginTypeLabel }} does not have settings.</div>
+ @if (isPlugin()) {
+ <div i18n class="no-settings">This plugin does not have settings.</div>
+ } @else if (isTheme()) {
+ <div i18n class="no-settings">This theme does not have settings.</div>
+ }
}
}
diff --git a/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts b/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts
index 6447162f51..898b6e6dab 100644
--- a/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts
+++ b/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts
@@ -5,7 +5,7 @@ import { HooksService, Notifier, PluginService, ServerService } from '@app/core'
import { BuildFormArgument } from '@app/shared/form-validators/form-validator.model'
import { FormReactive } from '@app/shared/shared-forms/form-reactive'
import { FormReactiveService } from '@app/shared/shared-forms/form-reactive.service'
-import { PeerTubePlugin, RegisterServerSettingOptions } from '@peertube/peertube-models'
+import { PeerTubePlugin, PluginType, RegisterServerSettingOptions } from '@peertube/peertube-models'
import { Subscription } from 'rxjs'
import { map, switchMap } from 'rxjs/operators'
import { PluginApiService } from '../../../shared/shared-admin/plugin-api.service'
@@ -78,6 +78,14 @@ export class PluginShowInstalledComponent extends FormReactive implements OnInit
return setting.name + '-wrapper'
}
+ isTheme () {
+ return this.plugin.type === PluginType.THEME
+ }
+
+ isPlugin () {
+ return this.plugin.type === PluginType.PLUGIN
+ }
+
private loadPlugin (npmName: string) {
this.pluginAPIService.getPlugin(npmName)
.pipe(switchMap(plugin => {