Skip to content

Commit ce783d9

Browse files
committed
fix(package): added missed registrationEnabled input in the login component
1 parent cbe20e8 commit ce783d9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/module/components/ngx-auth-firebaseui-login/ngx-auth-firebaseui-login.component.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@
7575
theme="raised"
7676
[providers]="providers"></ngx-auth-firebaseui-providers>
7777

78-
<div class="register"
79-
fxLayout="column" fxLayoutAlign="center center"
80-
[@animateStagger]="{ value: '100' }">
78+
<div *ngIf="registrationEnabled"
79+
[@animateStagger]="{ value: '100' }"
80+
class="register"
81+
fxLayout="column" fxLayoutAlign="center center">
8182
<span class="text" [@animate]="{ value: '*', params: { x: '100px' } }">
8283
{{dontHaveAnAccountText}}
8384
</span>

src/module/components/ngx-auth-firebaseui-login/ngx-auth-firebaseui-login.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export class NgxAuthFirebaseuiLoginComponent implements OnInit {
1818
@Input() logoUrl: string;
1919
@Input() providers: string[] | string = AuthProvider.ALL; // google, facebook, twitter, github as array or all as one single string
2020
@Input() appearance: MatFormFieldAppearance;
21+
@Input() registrationEnabled = true;
2122
@Input() resetPasswordEnabled = true;
2223
@Input() messageOnAuthSuccess: string;
2324
@Input() messageOnAuthError: string;

0 commit comments

Comments
 (0)