Skip to content

Commit

Permalink
Merge pull request #3913 from NoelDeMartin/MOBILE-3947
Browse files Browse the repository at this point in the history
MOBILE-3947 login: Restore logo fallback
  • Loading branch information
dpalou authored Jan 30, 2024
2 parents 9b711fa + b5961ad commit 40c1169
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/core/features/login/pages/credentials/credentials.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ <h1>{{ 'core.login.login' | translate }}</h1>
<ng-container *ngIf="!siteCheckError && site && credForm">
<div class="ion-text-wrap ion-text-center core-login-info-box">
<div class="core-login-site">
<div class="core-login-site-logo" *ngIf="logoUrl">
<img [src]="logoUrl" role="presentation" alt="" onError="this.src='assets/img/login_logo.png'">
<div class="core-login-site-logo">
<!-- Show site logo or a default image. -->
<img *ngIf="logoUrl" [src]="logoUrl" role="presentation" alt="" onError="this.src='assets/img/login_logo.png'">
<img *ngIf="!logoUrl" src="assets/img/login_logo.png" role="presentation" alt="">
</div>

<h2 *ngIf="siteName" class="ion-margin-top ion-no-padding core-sitename">
Expand Down
6 changes: 4 additions & 2 deletions src/core/features/login/pages/reconnect/reconnect.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ <h1>{{ 'core.login.reconnect' | translate }}</h1>

<div class="ion-text-wrap ion-text-center core-login-info-box">
<div class="core-login-site">
<div class="core-login-site-logo" *ngIf="!showUserAvatar && logoUrl">
<img [src]="logoUrl" role="presentation" onError="this.src='assets/img/login_logo.png'" alt="">
<div class="core-login-site-logo" *ngIf="!showUserAvatar">
<!-- Show site logo or a default image. -->
<img *ngIf="logoUrl" [src]="logoUrl" role="presentation" onError="this.src='assets/img/login_logo.png'" alt="">
<img *ngIf="!logoUrl" src="assets/img/login_logo.png" role="presentation" alt="">
</div>

<p *ngIf="siteInfo?.siteName" class="ion-no-margin ion-no-padding core-sitename">
Expand Down

0 comments on commit 40c1169

Please sign in to comment.