mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
* chore: enable strict mode * refactor: remove sync data access from PatchDbService * launchable even when no LAN url Co-authored-by: Matt Hill <matthewonthemoon@gmail.com>
30 lines
884 B
TypeScript
30 lines
884 B
TypeScript
import { Component, Input } from '@angular/core'
|
|
import { ConnectionService } from 'src/app/services/connection.service'
|
|
import { InstallProgress } from 'src/app/services/patch-db/data-model'
|
|
import {
|
|
PrimaryRendering,
|
|
PrimaryStatus,
|
|
StatusRendering,
|
|
} from 'src/app/services/pkg-status-rendering.service'
|
|
|
|
@Component({
|
|
selector: 'status',
|
|
templateUrl: './status.component.html',
|
|
styleUrls: ['./status.component.scss'],
|
|
})
|
|
export class StatusComponent {
|
|
PS = PrimaryStatus
|
|
PR = PrimaryRendering
|
|
|
|
@Input() rendering!: StatusRendering
|
|
@Input() size?: string
|
|
@Input() style?: string = 'regular'
|
|
@Input() weight?: string = 'normal'
|
|
@Input() installProgress?: InstallProgress
|
|
@Input() sigtermTimeout?: string | null = null
|
|
|
|
disconnected$ = this.connectionService.watchDisconnected$()
|
|
|
|
constructor(private readonly connectionService: ConnectionService) {}
|
|
}
|