- These services are provided for members of this VO. You can inspect credentials by clicking on the arrows.
+ These services are provided for members of this VO.
- Currently, no services need membership of this VO. You can select keys for this VO anyway. We will deploy them to new services, that need
- membership of this VO.
+ Currently, no services need membership of this VO. You can request a deployment anyway. We will deploy them to new services of this VO.
@@ -80,13 +75,13 @@
diff --git a/src/app/vo/vo.component.ts b/src/app/vo/vo.component.ts
index 8b348698c06d9177149184e63509d9da36a765d7..a6fc920e52156c01782596c0ee7d14a85d1ba303 100644
--- a/src/app/vo/vo.component.ts
+++ b/src/app/vo/vo.component.ts
@@ -30,16 +30,25 @@ export class VoComponent implements OnInit {
}
public sites(): t.Site[] {
- return this.userService.getServices(this.group).map(
+ let sites: Map = new Map();
+ let ss:t.Site[] = [];
+
+ this.userService.getServices(this.group).map(
(s: t.Service) => {
- if (s.site.length == 1) {
- return s.site[0];
- } else {
- console.log("Group service is provided by more than one site!")
- return undefined
- }
+ s.site.forEach(
+ site => {
+ sites.set(site.id, site);
+ }
+ );
+ }
+ );
+
+ sites.forEach(
+ site => {
+ ss.push(site);
}
);
+ return ss;
}
public servicesBySite(site: t.Site): t.Service[] {
@@ -64,7 +73,7 @@ export class VoComponent implements OnInit {
return this.userService.getServices(this.group);
}
- public stateItem(service: t.Service, site: t.Site): t.DeploymentStateItem | undefined {
+ public stateItem(site: t.Site, service: t.Service): t.DeploymentStateItem | undefined {
if (!this.deploymentMapped()) {
return undefined;
}