Skip to content

Commit

Permalink
fix: favicon, page titles (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
illfixit authored Mar 13, 2024
1 parent d8fadcb commit 70445a0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ please see [changelog_updates.md](docs/dev/changelog_updates.md).
- Fix provisioning CaaS breaking dashboard ([#27](https://github.com/sovity/authority-portal/issues/27))
- Fixed the text being cut off in the connector self-hosting instructions ([#35](https://github.com/sovity/authority-portal/issues/35))
- Fixed inconsistent placeholder values for privacy policy and legal notice links ([#41](https://github.com/sovity/authority-portal/issues/41))
- Fixed favicon and page titles being not aligned with breadcrumb ([[#48](https://github.com/sovity/authority-portal/issues/48)])
- Fixed misleading UptimeKuma endpoint documentation ([#26](https://github.com/sovity/authority-portal/issues/26))
- Fixed components being displayed as online when UptimeKuma is unreachable
- Cleaned up repository for open-source release:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* sovity GmbH - initial implementation
*/
import {Component, OnDestroy} from '@angular/core';
import {Title} from '@angular/platform-browser';
import {Subject, takeUntil} from 'rxjs';
import {BreadcrumbItem} from './breadcrumb.model';
import {BreadcrumbService} from './breadcrumb.service';
Expand All @@ -22,11 +23,17 @@ import {BreadcrumbService} from './breadcrumb.service';
export class BreadcrumbComponent implements OnDestroy {
breadcrumb: BreadcrumbItem[] = [];

constructor(private breadcrumbService: BreadcrumbService) {
constructor(
private breadcrumbService: BreadcrumbService,
private titleService: Title,
) {
this.breadcrumbService.breadcrumb$
.pipe(takeUntil(this.ngOnDestroy$))
.subscribe((breadcrumb) => {
this.breadcrumb = breadcrumb;
this.titleService.setTitle(
'MDS ' + breadcrumb[breadcrumb.length - 1].label || 'Portal',
);
});
}

Expand Down
Binary file removed authority-portal-frontend/src/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion authority-portal-frontend/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Authority Portal</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link rel="icon" type="image/x-icon" href="assets/images/logo_light.svg" />
</head>

<body>
Expand Down

0 comments on commit 70445a0

Please sign in to comment.