diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-22 16:04:44 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | e8f902c05cb35f6d5e9b75a23ddabd51c220a976 (patch) | |
tree | eb6297bc50206546cbae12c6abc5b50ed802b17e /client/src/app/core | |
parent | 93cae47925e4dd68b7d34a41927b2740b4fab1b4 (diff) | |
download | PeerTube-e8f902c05cb35f6d5e9b75a23ddabd51c220a976.tar.gz PeerTube-e8f902c05cb35f6d5e9b75a23ddabd51c220a976.tar.zst PeerTube-e8f902c05cb35f6d5e9b75a23ddabd51c220a976.zip |
Use search client scope
Diffstat (limited to 'client/src/app/core')
-rw-r--r-- | client/src/app/core/plugins/plugin.service.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/app/core/plugins/plugin.service.ts b/client/src/app/core/plugins/plugin.service.ts index 14310f093..7c1d69bec 100644 --- a/client/src/app/core/plugins/plugin.service.ts +++ b/client/src/app/core/plugins/plugin.service.ts | |||
@@ -28,6 +28,7 @@ export class PluginService implements ClientHook { | |||
28 | 28 | ||
29 | pluginsLoaded: { [ scope in PluginClientScope ]: ReplaySubject<boolean> } = { | 29 | pluginsLoaded: { [ scope in PluginClientScope ]: ReplaySubject<boolean> } = { |
30 | common: new ReplaySubject<boolean>(1), | 30 | common: new ReplaySubject<boolean>(1), |
31 | search: new ReplaySubject<boolean>(1), | ||
31 | 'video-watch': new ReplaySubject<boolean>(1) | 32 | 'video-watch': new ReplaySubject<boolean>(1) |
32 | } | 33 | } |
33 | 34 | ||
@@ -109,7 +110,11 @@ export class PluginService implements ClientHook { | |||
109 | if (!isReload) this.loadedScopes.push(scope) | 110 | if (!isReload) this.loadedScopes.push(scope) |
110 | 111 | ||
111 | const toLoad = this.scopes[ scope ] | 112 | const toLoad = this.scopes[ scope ] |
112 | if (!Array.isArray(toLoad)) return | 113 | if (!Array.isArray(toLoad)) { |
114 | this.pluginsLoaded[scope].next(true) | ||
115 | |||
116 | return | ||
117 | } | ||
113 | 118 | ||
114 | const promises: Promise<any>[] = [] | 119 | const promises: Promise<any>[] = [] |
115 | for (const pluginInfo of toLoad) { | 120 | for (const pluginInfo of toLoad) { |