Skip to content

Commit 324e438

Browse files
authored
Merge pull request #39
Update the status page
2 parents 3a798f9 + ce21fb0 commit 324e438

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1+
<h2>Web client</h2>
2+
@if(updateFound$ | async){
3+
<app-update-button/>
4+
} @else {
5+
<p>You are using the latest version.</p>
6+
}
7+
<h2>Backend</h2>
18
<app-health-status class="health"/>

src/app/pages/status-page/status-page.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
import { Component, inject, OnInit } from '@angular/core'
22
import { HealthStatus } from '../../components/health-status/health-status'
33
import { TitleService } from '../../services/title-service'
4+
import { UpdateButton } from '../../components/update-button/update-button'
5+
import { AppUpdate } from '../../services/app-update'
6+
import { AsyncPipe } from '@angular/common'
47

58
@Component({
69
selector: 'app-status-page',
7-
imports: [HealthStatus],
10+
imports: [HealthStatus, UpdateButton, AsyncPipe],
811
templateUrl: './status-page.html',
912
styleUrl: './status-page.css',
1013
})
1114
export class StatusPage implements OnInit {
1215
private readonly titleService = inject(TitleService)
16+
private readonly appUpdates = inject(AppUpdate)
17+
18+
updateFound$ = this.appUpdates.updateFound
1319

1420
ngOnInit() {
1521
this.titleService.setTitle('User')

0 commit comments

Comments
 (0)