diff options
Diffstat (limited to 'client/src/app/+admin/plugins')
3 files changed, 5 insertions, 7 deletions
diff --git a/client/src/app/+admin/plugins/plugin-search/plugin-search.component.html b/client/src/app/+admin/plugins/plugin-search/plugin-search.component.html index 8d8f12c48..a41c7d700 100644 --- a/client/src/app/+admin/plugins/plugin-search/plugin-search.component.html +++ b/client/src/app/+admin/plugins/plugin-search/plugin-search.component.html | |||
@@ -3,7 +3,7 @@ | |||
3 | </div> | 3 | </div> |
4 | 4 | ||
5 | <div class="search-bar"> | 5 | <div class="search-bar"> |
6 | <input type="text" (input)="onSearchChange($event)" i18n-placeholder placeholder="Search..." autofocus /> | 6 | <input type="text" (input)="onSearchChange($event)" i18n-placeholder placeholder="Search..." myAutofocus /> |
7 | </div> | 7 | </div> |
8 | 8 | ||
9 | <div class="alert alert-info" i18n *ngIf="pluginInstalled"> | 9 | <div class="alert alert-info" i18n *ngIf="pluginInstalled"> |
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 10fb52911..402bef1ea 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 | |||
@@ -103,8 +103,8 @@ export class PluginShowInstalledComponent extends FormReactive implements OnInit | |||
103 | const settingsValues: any = {} | 103 | const settingsValues: any = {} |
104 | 104 | ||
105 | for (const setting of this.registeredSettings) { | 105 | for (const setting of this.registeredSettings) { |
106 | buildOptions[ setting.name ] = null | 106 | buildOptions[setting.name] = null |
107 | settingsValues[ setting.name ] = this.getSetting(setting.name) | 107 | settingsValues[setting.name] = this.getSetting(setting.name) |
108 | } | 108 | } |
109 | 109 | ||
110 | this.buildForm(buildOptions) | 110 | this.buildForm(buildOptions) |
@@ -117,7 +117,7 @@ export class PluginShowInstalledComponent extends FormReactive implements OnInit | |||
117 | private getSetting (name: string) { | 117 | private getSetting (name: string) { |
118 | const settings = this.plugin.settings | 118 | const settings = this.plugin.settings |
119 | 119 | ||
120 | if (settings && settings[name] !== undefined) return settings[name] | 120 | if (settings?.[name] !== undefined) return settings[name] |
121 | 121 | ||
122 | const registered = this.registeredSettings.find(r => r.name === name) | 122 | const registered = this.registeredSettings.find(r => r.name === name) |
123 | 123 | ||
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 d91fccc09..c4f480cae 100644 --- a/client/src/app/+admin/plugins/shared/plugin-api.service.ts +++ b/client/src/app/+admin/plugins/shared/plugin-api.service.ts | |||
@@ -1,10 +1,8 @@ | |||
1 | import { Observable } from 'rxjs' | 1 | import { catchError } from 'rxjs/operators' |
2 | import { catchError, map, switchMap } from 'rxjs/operators' | ||
3 | import { HttpClient, HttpParams } from '@angular/common/http' | 2 | import { HttpClient, HttpParams } from '@angular/common/http' |
4 | import { Injectable } from '@angular/core' | 3 | import { Injectable } from '@angular/core' |
5 | import { ComponentPagination, RestExtractor, RestService } from '@app/core' | 4 | import { ComponentPagination, RestExtractor, RestService } from '@app/core' |
6 | import { PluginService } from '@app/core/plugins/plugin.service' | 5 | import { PluginService } from '@app/core/plugins/plugin.service' |
7 | import { peertubeTranslate } from '@shared/core-utils/i18n' | ||
8 | import { | 6 | import { |
9 | InstallOrUpdatePlugin, | 7 | InstallOrUpdatePlugin, |
10 | ManagePlugin, | 8 | ManagePlugin, |