Skip to content

Commit

Permalink
Improve footer config
Browse files Browse the repository at this point in the history
  • Loading branch information
bpedersen2 committed Nov 17, 2023
1 parent 6d4ab64 commit 215af77
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/app/app-config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export interface AppConfig {
scicatBaseUrl: string;
showLogoBanner: boolean;
logoBanner: string | null;
logoWidth: string;
retrieveToEmail: RetrieveDestinations | undefined;
}

Expand Down Expand Up @@ -48,6 +49,8 @@ export class AppConfigService {
this.appConfig = environment;
}
}
// Use old default if not provided
this.appConfig.logoWidth = this.appConfig.logoWidth ?? "412";
}

getConfig(): AppConfig {
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
<router-outlet></router-outlet>

<mat-toolbar class="footer" *ngIf="config.showLogoBanner">
<img src="../assets/{{ config.logoBanner }}" width="412" alt="logo_banner" />
<img src="../assets/{{ config.logoBanner }}" width="{{ config.logoWidth }}" alt="logo_banner" />
</mat-toolbar>
1 change: 1 addition & 0 deletions src/app/app.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
.footer {
height: 77px;
justify-content: center;
background-color: var(--theme-primary-default-contrast);
}

.spacer {
Expand Down

0 comments on commit 215af77

Please sign in to comment.