mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
18 lines
488 B
TypeScript
18 lines
488 B
TypeScript
import { Pipe, PipeTransform } from '@angular/core'
|
|
import { PackageLoadingService, ProgressData } from '../services/package-loading.service'
|
|
import { InstallProgress } from '../services/patch-db/data-model'
|
|
|
|
@Pipe({
|
|
name: 'installState',
|
|
})
|
|
export class InstallState implements PipeTransform {
|
|
|
|
constructor (
|
|
private readonly pkgLoading: PackageLoadingService,
|
|
) { }
|
|
|
|
transform (loadData: InstallProgress): ProgressData {
|
|
return this.pkgLoading.transform(loadData)
|
|
}
|
|
}
|