Skip to content

Commit 7128269

Browse files
committed
feat: adjust dashboard endpoint
1 parent 145b580 commit 7128269

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/otomi-stack.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ export default class OtomiStack {
14591459
}
14601460

14611461
getDashboard(teamName: string): Array<any> {
1462-
const projects = teamName ? this.repoService.getTeamConfigService(teamName).getProjects() : this.getAllProjects()
1462+
const codeRepos = teamName ? this.repoService.getTeamConfigService(teamName).getCodeRepos() : this.getAllCodeRepos()
14631463
const builds = teamName ? this.repoService.getTeamConfigService(teamName).getBuilds() : this.getAllBuilds()
14641464
const workloads = teamName ? this.repoService.getTeamConfigService(teamName).getWorkloads() : this.getAllWorkloads()
14651465
const services = teamName ? this.repoService.getTeamConfigService(teamName).getServices() : this.getAllServices()
@@ -1469,11 +1469,11 @@ export default class OtomiStack {
14691469
const netpols = teamName ? this.repoService.getTeamConfigService(teamName).getNetpols() : this.getAllNetpols()
14701470

14711471
return [
1472-
{ name: 'projects', count: projects?.length },
1472+
{ name: 'code-repositories', count: codeRepos?.length },
14731473
{ name: 'container-images', count: builds?.length },
14741474
{ name: 'workloads', count: workloads?.length },
14751475
{ name: 'services', count: services?.length },
1476-
{ name: 'sealed-secrets', count: secrets?.length },
1476+
{ name: 'secrets', count: secrets?.length },
14771477
{ name: 'network-policies', count: netpols?.length },
14781478
]
14791479
}

0 commit comments

Comments
 (0)