Skip to content

Commit 6e2b609

Browse files
committed
chore: display app version next to app title
1 parent 8591aa8 commit 6e2b609

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

src/app/modules/popup/layout/layout.component.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@
6969
>
7070
menu
7171
</button>
72-
<a mdcTopAppBarTitle title="Anime Tracker" [routerLink]="['/']">
72+
<a
73+
mdcTopAppBarTitle
74+
[title]="'Anime Tracker v' + version"
75+
[routerLink]="['/']"
76+
>
7377
<img alt="logo" src="assets/icons/128.png" />
7478
</a>
7579
<app-search-input

src/app/modules/popup/layout/layout.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Router } from '@angular/router';
44
import { DebugService } from 'src/app/services/debug.service';
55
import { NotificationsService } from 'src/app/services/notifications.service';
66
import { SettingsService } from 'src/app/services/settings.service';
7+
import packageJson from '../../../../../package.json';
78

89
@Component({
910
selector: 'app-layout',
@@ -21,6 +22,7 @@ export class LayoutComponent implements OnInit {
2122
@Output() private searchValueChange: EventEmitter<string> =
2223
new EventEmitter();
2324
readonly views: typeof View = View;
25+
readonly version: string = packageJson.version;
2426

2527
constructor(
2628
public router: Router,

tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"declaration": false,
88
"downlevelIteration": true,
99
"experimentalDecorators": true,
10+
"resolveJsonModule": true,
11+
"allowSyntheticDefaultImports": true,
1012
"module": "es2020",
1113
"moduleResolution": "node",
1214
"importHelpers": true,

0 commit comments

Comments
 (0)