MOBILE-3947 login: Restore logo fallback

main
Noel De Martin 2024-01-29 12:31:01 +01:00
parent 9b711fa8f8
commit b5961ada67
2 changed files with 8 additions and 4 deletions

View File

@ -23,8 +23,10 @@
<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">

View File

@ -31,8 +31,10 @@
<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">