Skip to content

Commit

Permalink
chore: display app version next to app title
Browse files Browse the repository at this point in the history
  • Loading branch information
AXeL-dev committed Jul 16, 2022
1 parent 8591aa8 commit 6e2b609
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/modules/popup/layout/layout.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@
>
menu
</button>
<a mdcTopAppBarTitle title="Anime Tracker" [routerLink]="['/']">
<a
mdcTopAppBarTitle
[title]="'Anime Tracker v' + version"
[routerLink]="['/']"
>
<img alt="logo" src="assets/icons/128.png" />
</a>
<app-search-input
Expand Down
2 changes: 2 additions & 0 deletions src/app/modules/popup/layout/layout.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Router } from '@angular/router';
import { DebugService } from 'src/app/services/debug.service';
import { NotificationsService } from 'src/app/services/notifications.service';
import { SettingsService } from 'src/app/services/settings.service';
import packageJson from '../../../../../package.json';

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

constructor(
public router: Router,
Expand Down
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"module": "es2020",
"moduleResolution": "node",
"importHelpers": true,
Expand Down

0 comments on commit 6e2b609

Please sign in to comment.