@@ -1411,21 +1411,23 @@ export default class OtomiStack {
14111411 return internalRepoUrls
14121412 }
14131413
1414- getDashboard ( teamId : string ) : Array < any > {
1415- const projects = this . repoService . getTeamConfigService ( teamId ) . getProjects ( )
1416- const builds = this . repoService . getTeamConfigService ( teamId ) . getBuilds ( )
1417- const workloads = this . repoService . getTeamConfigService ( teamId ) . getWorkloads ( )
1418- const services = this . repoService . getTeamConfigService ( teamId ) . getServices ( )
1419- const secrets = this . repoService . getTeamConfigService ( teamId ) . getSealedSecrets ( )
1420- const netpols = this . repoService . getTeamConfigService ( teamId ) . getNetpols ( )
1414+ getDashboard ( teamName : string ) : Array < any > {
1415+ const projects = teamName ? this . repoService . getTeamConfigService ( teamName ) . getProjects ( ) : this . getAllProjects ( )
1416+ const builds = teamName ? this . repoService . getTeamConfigService ( teamName ) . getBuilds ( ) : this . getAllBuilds ( )
1417+ const workloads = teamName ? this . repoService . getTeamConfigService ( teamName ) . getWorkloads ( ) : this . getAllWorkloads ( )
1418+ const services = teamName ? this . repoService . getTeamConfigService ( teamName ) . getServices ( ) : this . getAllServices ( )
1419+ const secrets = teamName
1420+ ? this . repoService . getTeamConfigService ( teamName ) . getSealedSecrets ( )
1421+ : this . getAllSealedSecrets ( )
1422+ const netpols = teamName ? this . repoService . getTeamConfigService ( teamName ) . getNetpols ( ) : this . getAllNetpols ( )
14211423
14221424 return [
14231425 { name : 'projects' , count : projects ?. length } ,
1424- { name : 'builds ' , count : builds ?. length } ,
1426+ { name : 'container-images ' , count : builds ?. length } ,
14251427 { name : 'workloads' , count : workloads ?. length } ,
14261428 { name : 'services' , count : services ?. length } ,
1427- { name : 'sealed secrets' , count : secrets ?. length } ,
1428- { name : 'network policies' , count : netpols ?. length } ,
1429+ { name : 'sealed- secrets' , count : secrets ?. length } ,
1430+ { name : 'network- policies' , count : netpols ?. length } ,
14291431 ]
14301432 }
14311433
0 commit comments