aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core/plugins
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-24 11:17:42 +0200
committerChocobozzz <me@florianbigard.com>2019-07-24 11:17:42 +0200
commit9ae88819c202a6ce4a36b56506f508a5603e8eab (patch)
tree4936990dff918ceabe835dfa7192e5e4c6211dc6 /client/src/app/core/plugins
parent5f189c9c85449951254646ddf6cd6c84bc4c06ff (diff)
downloadPeerTube-9ae88819c202a6ce4a36b56506f508a5603e8eab.tar.gz
PeerTube-9ae88819c202a6ce4a36b56506f508a5603e8eab.tar.zst
PeerTube-9ae88819c202a6ce4a36b56506f508a5603e8eab.zip
Change plugin models names
Diffstat (limited to 'client/src/app/core/plugins')
-rw-r--r--client/src/app/core/plugins/plugin.service.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/core/plugins/plugin.service.ts b/client/src/app/core/plugins/plugin.service.ts
index 5d180e5a0..e4a73de81 100644
--- a/client/src/app/core/plugins/plugin.service.ts
+++ b/client/src/app/core/plugins/plugin.service.ts
@@ -4,14 +4,14 @@ import { ServerConfigPlugin } from '@shared/models'
4import { ServerService } from '@app/core/server/server.service' 4import { ServerService } from '@app/core/server/server.service'
5import { ClientScript } from '@shared/models/plugins/plugin-package-json.model' 5import { ClientScript } from '@shared/models/plugins/plugin-package-json.model'
6import { environment } from '../../../environments/environment' 6import { environment } from '../../../environments/environment'
7import { RegisterHookOptions } from '@shared/models/plugins/register-hook.model'
8import { ReplaySubject } from 'rxjs' 7import { ReplaySubject } from 'rxjs'
9import { first, shareReplay } from 'rxjs/operators' 8import { first, shareReplay } from 'rxjs/operators'
10import { getHookType, internalRunHook } from '@shared/core-utils/plugins/hooks' 9import { getHookType, internalRunHook } from '@shared/core-utils/plugins/hooks'
11import { ClientHook, ClientHookName, clientHookObject } from '@shared/models/plugins/client-hook.model' 10import { ClientHook, ClientHookName, clientHookObject } from '@shared/models/plugins/client-hook.model'
12import { PluginClientScope } from '@shared/models/plugins/plugin-client-scope.type' 11import { PluginClientScope } from '@shared/models/plugins/plugin-client-scope.type'
12import { RegisterClientHookOptions } from '@shared/models/plugins/register-client-hook.model'
13 13
14interface HookStructValue extends RegisterHookOptions { 14interface HookStructValue extends RegisterClientHookOptions {
15 plugin: ServerConfigPlugin 15 plugin: ServerConfigPlugin
16 clientScript: ClientScript 16 clientScript: ClientScript
17} 17}
@@ -164,7 +164,7 @@ export class PluginService implements ClientHook {
164 private loadPlugin (pluginInfo: PluginInfo) { 164 private loadPlugin (pluginInfo: PluginInfo) {
165 const { plugin, clientScript } = pluginInfo 165 const { plugin, clientScript } = pluginInfo
166 166
167 const registerHook = (options: RegisterHookOptions) => { 167 const registerHook = (options: RegisterClientHookOptions) => {
168 if (clientHookObject[options.target] !== true) { 168 if (clientHookObject[options.target] !== true) {
169 console.error('Unknown hook %s of plugin %s. Skipping.', options.target, plugin.name) 169 console.error('Unknown hook %s of plugin %s. Skipping.', options.target, plugin.name)
170 return 170 return