From: Chocobozzz Date: Wed, 6 May 2020 12:01:30 +0000 (+0200) Subject: Add ability to override login signup message X-Git-Tag: v2.2.0-rc.1~75 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=f375bb3db401e42b4317545a7e40dcfda692604d;p=github%2FChocobozzz%2FPeerTube.git Add ability to override login signup message --- 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 @@ +import { from, Observable } from 'rxjs' +import { mergeMap, switchMap } from 'rxjs/operators' import { Injectable } from '@angular/core' import { PluginService } from '@app/core/plugins/plugin.service' import { ClientActionHookName, ClientFilterHookName } from '@shared/models/plugins/client-hook.model' -import { from, Observable } from 'rxjs' -import { mergeMap, switchMap } from 'rxjs/operators' -import { ServerService } from '@app/core/server' import { PluginClientScope } from '@shared/models/plugins/plugin-client-scope.type' type RawFunction = (params: U) => T @@ -11,10 +10,7 @@ type ObservableFunction = RawFunction> @Injectable() export class HooksService { - constructor ( - private server: ServerService, - private pluginService: PluginService - ) { } + constructor (private pluginService: PluginService) { } wrapObsFun 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 { common: new ReplaySubject(1), search: new ReplaySubject(1), 'video-watch': new ReplaySubject(1), - signup: new ReplaySubject(1) + signup: new ReplaySubject(1), + login: new ReplaySubject(1) } translationsObservable: Observable diff --git a/client/src/app/login/login.component.html b/client/src/app/login/login.component.html index a935c86c3..599b203ae 100644 --- a/client/src/app/login/login.component.html +++ b/client/src/app/login/login.component.html @@ -8,7 +8,7 @@ -