From 4cdec767b65a6a2ffeef5b7ec8056347fc4aeabd Mon Sep 17 00:00:00 2001 From: samuel-p Date: Sun, 10 Jan 2021 18:26:10 +0100 Subject: [PATCH] minor bug fix --- config.json | 21 --------------------- src/app/app.component.ts | 2 +- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/config.json b/config.json index d781b11..c4a0d27 100644 --- a/config.json +++ b/config.json @@ -2,12 +2,6 @@ "authToken": "test", "title": "sp-status", "description": "Services hosted by sp-codes", - "translations": { - "de": { - "title": "sp-status", - "description": "Services von sp-codes bereitgestellt" - } - }, "servicesPath": "$.alerts.*", "idPath": "$.labels.status_service", "statePath": "$.status", @@ -26,21 +20,6 @@ "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 32afafa..31058b6 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); }); }