diff options
Diffstat (limited to 'client/src/app/+login/login.component.ts')
-rw-r--r-- | client/src/app/+login/login.component.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/app/+login/login.component.ts b/client/src/app/+login/login.component.ts index a414a2121..e486df61d 100644 --- a/client/src/app/+login/login.component.ts +++ b/client/src/app/+login/login.component.ts | |||
@@ -22,6 +22,7 @@ export class LoginComponent extends FormReactive implements OnInit, AfterViewIni | |||
22 | 22 | ||
23 | @ViewChild('forgotPasswordModal', { static: true }) forgotPasswordModal: ElementRef | 23 | @ViewChild('forgotPasswordModal', { static: true }) forgotPasswordModal: ElementRef |
24 | @ViewChild('otpTokenInput') otpTokenInput: InputTextComponent | 24 | @ViewChild('otpTokenInput') otpTokenInput: InputTextComponent |
25 | @ViewChild('instanceAboutAccordion') instanceAboutAccordion: InstanceAboutAccordionComponent | ||
25 | 26 | ||
26 | accordion: NgbAccordionDirective | 27 | accordion: NgbAccordionDirective |
27 | error: string = null | 28 | error: string = null |
@@ -70,8 +71,8 @@ export class LoginComponent extends FormReactive implements OnInit, AfterViewIni | |||
70 | onTermsClick (event: Event, instanceInformation: HTMLElement) { | 71 | onTermsClick (event: Event, instanceInformation: HTMLElement) { |
71 | event.preventDefault() | 72 | event.preventDefault() |
72 | 73 | ||
73 | if (this.accordion) { | 74 | if (this.instanceAboutAccordion) { |
74 | this.accordion.expand('terms') | 75 | this.instanceAboutAccordion.expandTerms() |
75 | instanceInformation.scrollIntoView({ behavior: 'smooth' }) | 76 | instanceInformation.scrollIntoView({ behavior: 'smooth' }) |
76 | } | 77 | } |
77 | } | 78 | } |