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/login/login.component.ts | |
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/login/login.component.ts')
-rw-r--r-- | client/src/app/login/login.component.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/login/login.component.ts b/client/src/app/login/login.component.ts index 5d935cb49..fff4b43f6 100644 --- a/client/src/app/login/login.component.ts +++ b/client/src/app/login/login.component.ts | |||
@@ -10,6 +10,7 @@ import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap' | |||
10 | import { ActivatedRoute } from '@angular/router' | 10 | import { ActivatedRoute } from '@angular/router' |
11 | import { ServerConfig, RegisteredExternalAuthConfig } from '@shared/models/server/server-config.model' | 11 | import { ServerConfig, RegisteredExternalAuthConfig } from '@shared/models/server/server-config.model' |
12 | import { environment } from 'src/environments/environment' | 12 | import { environment } from 'src/environments/environment' |
13 | import { HooksService } from '@app/core/plugins/hooks.service' | ||
13 | 14 | ||
14 | @Component({ | 15 | @Component({ |
15 | selector: 'my-login', | 16 | selector: 'my-login', |
@@ -40,6 +41,7 @@ export class LoginComponent extends FormReactive implements OnInit, AfterViewIni | |||
40 | private userService: UserService, | 41 | private userService: UserService, |
41 | private redirectService: RedirectService, | 42 | private redirectService: RedirectService, |
42 | private notifier: Notifier, | 43 | private notifier: Notifier, |
44 | private hooks: HooksService, | ||
43 | private i18n: I18n | 45 | private i18n: I18n |
44 | ) { | 46 | ) { |
45 | super() | 47 | super() |
@@ -78,6 +80,8 @@ export class LoginComponent extends FormReactive implements OnInit, AfterViewIni | |||
78 | if (this.usernameInput) { | 80 | if (this.usernameInput) { |
79 | this.usernameInput.nativeElement.focus() | 81 | this.usernameInput.nativeElement.focus() |
80 | } | 82 | } |
83 | |||
84 | this.hooks.runAction('action:login.init', 'login') | ||
81 | } | 85 | } |
82 | 86 | ||
83 | getExternalLogins () { | 87 | getExternalLogins () { |