diff options
author | Chocobozzz <me@florianbigard.com> | 2020-05-06 14:01:30 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-05-06 14:03:23 +0200 |
commit | f375bb3db401e42b4317545a7e40dcfda692604d (patch) | |
tree | d2b978a63934f4cc0134674b00d678e8518e7e4f /client/src/app/core/plugins | |
parent | 86ab22921b3ea2660715d1db47fec7037b309d12 (diff) | |
download | PeerTube-f375bb3db401e42b4317545a7e40dcfda692604d.tar.gz PeerTube-f375bb3db401e42b4317545a7e40dcfda692604d.tar.zst PeerTube-f375bb3db401e42b4317545a7e40dcfda692604d.zip |
Add ability to override login signup message
Diffstat (limited to 'client/src/app/core/plugins')
-rw-r--r-- | client/src/app/core/plugins/hooks.service.ts | 10 | ||||
-rw-r--r-- | client/src/app/core/plugins/plugin.service.ts | 3 |
2 files changed, 5 insertions, 8 deletions
diff --git a/client/src/app/core/plugins/hooks.service.ts b/client/src/app/core/plugins/hooks.service.ts index a6a444c32..2fbf406d1 100644 --- a/client/src/app/core/plugins/hooks.service.ts +++ b/client/src/app/core/plugins/hooks.service.ts | |||
@@ -1,9 +1,8 @@ | |||
1 | import { from, Observable } from 'rxjs' | ||
2 | import { mergeMap, switchMap } from 'rxjs/operators' | ||
1 | import { Injectable } from '@angular/core' | 3 | import { Injectable } from '@angular/core' |
2 | import { PluginService } from '@app/core/plugins/plugin.service' | 4 | import { PluginService } from '@app/core/plugins/plugin.service' |
3 | import { ClientActionHookName, ClientFilterHookName } from '@shared/models/plugins/client-hook.model' | 5 | import { ClientActionHookName, ClientFilterHookName } from '@shared/models/plugins/client-hook.model' |
4 | import { from, Observable } from 'rxjs' | ||
5 | import { mergeMap, switchMap } from 'rxjs/operators' | ||
6 | import { ServerService } from '@app/core/server' | ||
7 | import { PluginClientScope } from '@shared/models/plugins/plugin-client-scope.type' | 6 | import { PluginClientScope } from '@shared/models/plugins/plugin-client-scope.type' |
8 | 7 | ||
9 | type RawFunction<U, T> = (params: U) => T | 8 | type RawFunction<U, T> = (params: U) => T |
@@ -11,10 +10,7 @@ type ObservableFunction<U, T> = RawFunction<U, Observable<T>> | |||
11 | 10 | ||
12 | @Injectable() | 11 | @Injectable() |
13 | export class HooksService { | 12 | export class HooksService { |
14 | constructor ( | 13 | constructor (private pluginService: PluginService) { } |
15 | private server: ServerService, | ||
16 | private pluginService: PluginService | ||
17 | ) { } | ||
18 | 14 | ||
19 | wrapObsFun | 15 | wrapObsFun |
20 | <P, R, H1 extends ClientFilterHookName, H2 extends ClientFilterHookName> | 16 | <P, R, H1 extends ClientFilterHookName, H2 extends ClientFilterHookName> |
diff --git a/client/src/app/core/plugins/plugin.service.ts b/client/src/app/core/plugins/plugin.service.ts index 3ed23160d..c6efcac6d 100644 --- a/client/src/app/core/plugins/plugin.service.ts +++ b/client/src/app/core/plugins/plugin.service.ts | |||
@@ -47,7 +47,8 @@ export class PluginService implements ClientHook { | |||
47 | common: new ReplaySubject<boolean>(1), | 47 | common: new ReplaySubject<boolean>(1), |
48 | search: new ReplaySubject<boolean>(1), | 48 | search: new ReplaySubject<boolean>(1), |
49 | 'video-watch': new ReplaySubject<boolean>(1), | 49 | 'video-watch': new ReplaySubject<boolean>(1), |
50 | signup: new ReplaySubject<boolean>(1) | 50 | signup: new ReplaySubject<boolean>(1), |
51 | login: new ReplaySubject<boolean>(1) | ||
51 | } | 52 | } |
52 | 53 | ||
53 | translationsObservable: Observable<PluginTranslation> | 54 | translationsObservable: Observable<PluginTranslation> |