mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
log backend integration fixes
This commit is contained in:
committed by
Matt Hill
parent
b0a64e3f6b
commit
c257faf432
@@ -72,6 +72,7 @@ export class AppListPage {
|
||||
}
|
||||
// subscribe to pkg
|
||||
this.pkgs[id].sub = this.patch.watch$('package-data', id).subscribe(pkg => {
|
||||
console.log('package', pkg)
|
||||
let bulbClass = 'bulb-on'
|
||||
let img = ''
|
||||
const statusRendering = renderPkgStatus(pkg.state, pkg.installed?.status)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Component } from '@angular/core'
|
||||
import { ActivatedRoute } from '@angular/router'
|
||||
import { ApiService } from 'src/app/services/api/embassy-api.service'
|
||||
|
||||
@Component({
|
||||
@@ -13,14 +14,17 @@ export class AppLogsPage {
|
||||
before: string
|
||||
|
||||
constructor (
|
||||
private readonly route: ActivatedRoute,
|
||||
private readonly embassyApi: ApiService,
|
||||
) { }
|
||||
) {
|
||||
this.pkgId = this.route.snapshot.paramMap.get('pkgId')
|
||||
|
||||
}
|
||||
|
||||
fetchFetchLogs () {
|
||||
return async (params: { before_flag?: boolean, limit?: number, cursor?: string }) => {
|
||||
const pkgId = this.pkgId
|
||||
return this.embassyApi.getPackageLogs({
|
||||
id: pkgId,
|
||||
id: this.pkgId,
|
||||
before_flag: params.before_flag,
|
||||
cursor: params.cursor,
|
||||
limit: params.limit,
|
||||
|
||||
Reference in New Issue
Block a user