diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-24 11:17:42 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-07-24 11:17:42 +0200 |
commit | 9ae88819c202a6ce4a36b56506f508a5603e8eab (patch) | |
tree | 4936990dff918ceabe835dfa7192e5e4c6211dc6 /client/src/app/+admin | |
parent | 5f189c9c85449951254646ddf6cd6c84bc4c06ff (diff) | |
download | PeerTube-9ae88819c202a6ce4a36b56506f508a5603e8eab.tar.gz PeerTube-9ae88819c202a6ce4a36b56506f508a5603e8eab.tar.zst PeerTube-9ae88819c202a6ce4a36b56506f508a5603e8eab.zip |
Change plugin models names
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r-- | client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts | 4 | ||||
-rw-r--r-- | client/src/app/+admin/plugins/shared/plugin-api.service.ts | 4 |
2 files changed, 4 insertions, 4 deletions
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 0fbd65160..569d98482 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 | |||
@@ -6,8 +6,8 @@ import { Notifier } from '@app/core' | |||
6 | import { ActivatedRoute } from '@angular/router' | 6 | import { ActivatedRoute } from '@angular/router' |
7 | import { Subscription } from 'rxjs' | 7 | import { Subscription } from 'rxjs' |
8 | import { map, switchMap } from 'rxjs/operators' | 8 | import { map, switchMap } from 'rxjs/operators' |
9 | import { RegisterSettingOptions } from '@shared/models/plugins/register-setting.model' | ||
10 | import { BuildFormArgument, FormReactive, FormValidatorService } from '@app/shared' | 9 | import { BuildFormArgument, FormReactive, FormValidatorService } from '@app/shared' |
10 | import { RegisterServerSettingOptions } from '@shared/models/plugins/register-server-setting.model' | ||
11 | 11 | ||
12 | @Component({ | 12 | @Component({ |
13 | selector: 'my-plugin-show-installed', | 13 | selector: 'my-plugin-show-installed', |
@@ -16,7 +16,7 @@ import { BuildFormArgument, FormReactive, FormValidatorService } from '@app/shar | |||
16 | }) | 16 | }) |
17 | export class PluginShowInstalledComponent extends FormReactive implements OnInit, OnDestroy { | 17 | export class PluginShowInstalledComponent extends FormReactive implements OnInit, OnDestroy { |
18 | plugin: PeerTubePlugin | 18 | plugin: PeerTubePlugin |
19 | registeredSettings: RegisterSettingOptions[] = [] | 19 | registeredSettings: RegisterServerSettingOptions[] = [] |
20 | pluginTypeLabel: string | 20 | pluginTypeLabel: string |
21 | 21 | ||
22 | private sub: Subscription | 22 | private sub: Subscription |
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 51f086a93..bfcaec011 100644 --- a/client/src/app/+admin/plugins/shared/plugin-api.service.ts +++ b/client/src/app/+admin/plugins/shared/plugin-api.service.ts | |||
@@ -10,8 +10,8 @@ import { ResultList } from '@shared/models' | |||
10 | import { PeerTubePlugin } from '@shared/models/plugins/peertube-plugin.model' | 10 | import { PeerTubePlugin } from '@shared/models/plugins/peertube-plugin.model' |
11 | import { ManagePlugin } from '@shared/models/plugins/manage-plugin.model' | 11 | import { ManagePlugin } from '@shared/models/plugins/manage-plugin.model' |
12 | import { InstallOrUpdatePlugin } from '@shared/models/plugins/install-plugin.model' | 12 | import { InstallOrUpdatePlugin } from '@shared/models/plugins/install-plugin.model' |
13 | import { RegisterSettingOptions } from '@shared/models/plugins/register-setting.model' | ||
14 | import { PeerTubePluginIndex } from '@shared/models/plugins/peertube-plugin-index.model' | 13 | import { PeerTubePluginIndex } from '@shared/models/plugins/peertube-plugin-index.model' |
14 | import { RegisterServerSettingOptions } from '@shared/models/plugins/register-server-setting.model' | ||
15 | 15 | ||
16 | @Injectable() | 16 | @Injectable() |
17 | export class PluginApiService { | 17 | export class PluginApiService { |
@@ -88,7 +88,7 @@ export class PluginApiService { | |||
88 | getPluginRegisteredSettings (pluginName: string, pluginType: PluginType) { | 88 | getPluginRegisteredSettings (pluginName: string, pluginType: PluginType) { |
89 | const path = PluginApiService.BASE_APPLICATION_URL + '/' + this.nameToNpmName(pluginName, pluginType) + '/registered-settings' | 89 | const path = PluginApiService.BASE_APPLICATION_URL + '/' + this.nameToNpmName(pluginName, pluginType) + '/registered-settings' |
90 | 90 | ||
91 | return this.authHttp.get<{ settings: RegisterSettingOptions[] }>(path) | 91 | return this.authHttp.get<{ settings: RegisterServerSettingOptions[] }>(path) |
92 | .pipe(catchError(res => this.restExtractor.handleError(res))) | 92 | .pipe(catchError(res => this.restExtractor.handleError(res))) |
93 | } | 93 | } |
94 | 94 | ||