Skip to content

Commit 32af818

Browse files
FIX pointless "or" in login/register UI without external auth
Normally, these UIs show a list of external out icon, then the word "or" and then the builtin e-mail based authentication. However, when all external authentication providers are disabled, their icons are hidden, but the (now pointless and confusing) "or" stays. This commit fixes that.
1 parent c37dc24 commit 32af818

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/app/account/components/login/login-dialog.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ <h4 class="title" translate="MODALS.LOGIN_HEADING"></h4>
8282

8383
</a>
8484
</div>
85-
<div translate="COMPONENTS.LOGIN_FORM.LOGIN_OR"></div>
85+
<div translate="COMPONENTS.LOGIN_FORM.LOGIN_OR" *ngIf="authMethodsAvailable.esteid || authMethodsAvailable.smartId || authMethodsAvailable.google || authMethodsAvailable.facebook"></div>
8686
<login-form [isDialog]="true" [redirectSuccess]="redirectSuccess" [email]="email"></login-form>
8787
</div>
8888
</ng-container>

src/app/account/components/login/login.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666
</a>
6767
</div>
68-
<div translate="COMPONENTS.LOGIN_FORM.LOGIN_OR"></div>
68+
<div translate="COMPONENTS.LOGIN_FORM.LOGIN_OR" *ngIf="authMethodsAvailable.esteid || authMethodsAvailable.smartId || authMethodsAvailable.google || authMethodsAvailable.facebook"></div>
6969
<login-form [redirectSuccess]="redirectSuccess" [email]="email"></login-form>
7070
</div>
7171
</div>

src/app/account/components/register/register.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979

8080
</a>
8181
</div>
82-
<div translate="VIEWS.REGISTER.REGISTER_OR"></div>
82+
<div translate="VIEWS.REGISTER.REGISTER_OR" *ngIf="authMethodsAvailable.esteid || authMethodsAvailable.smartId || authMethodsAvailable.google || authMethodsAvailable.facebook"></div>
8383
<register-form [redirectSuccess]="redirectSuccess" [email]="email"></register-form>
8484
</div>
8585
</div>

0 commit comments

Comments
 (0)