diff --git a/config.json b/config.json index e9d3a61..d781b11 100644 --- a/config.json +++ b/config.json @@ -26,6 +26,21 @@ "name": "My Service", "url": "http://sp-codes.de", "statePath": "$.state" + }, { + "id": "test3", + "name": "Test3", + "statePath": "$.state" + } + ] + }, { + "id": "group2", + "name": "Group2", + "services": [ + { + "id": "test2", + "name": "Test2", + "url": "http://sp-codes.de", + "statePath": "$.state" } ] } diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 31058b6..32afafa 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -38,7 +38,7 @@ export class AppComponent implements OnInit { this.api.getMetaInfo().subscribe(info => { this.title = info.title; this.description = info.description; - this.translations = info.translations || {}; + this.translations = info.translations; this.htmlTitle.setTitle(this.title); }); }