minor bug fix
This commit is contained in:
parent
ec6ae661b8
commit
4cdec767b6
2 changed files with 1 additions and 22 deletions
21
config.json
21
config.json
|
@ -2,12 +2,6 @@
|
||||||
"authToken": "test",
|
"authToken": "test",
|
||||||
"title": "sp-status",
|
"title": "sp-status",
|
||||||
"description": "Services hosted by sp-codes",
|
"description": "Services hosted by sp-codes",
|
||||||
"translations": {
|
|
||||||
"de": {
|
|
||||||
"title": "sp-status",
|
|
||||||
"description": "Services von sp-codes bereitgestellt"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"servicesPath": "$.alerts.*",
|
"servicesPath": "$.alerts.*",
|
||||||
"idPath": "$.labels.status_service",
|
"idPath": "$.labels.status_service",
|
||||||
"statePath": "$.status",
|
"statePath": "$.status",
|
||||||
|
@ -26,21 +20,6 @@
|
||||||
"name": "My Service",
|
"name": "My Service",
|
||||||
"url": "http://sp-codes.de",
|
"url": "http://sp-codes.de",
|
||||||
"statePath": "$.state"
|
"statePath": "$.state"
|
||||||
}, {
|
|
||||||
"id": "test3",
|
|
||||||
"name": "Test3",
|
|
||||||
"statePath": "$.state"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}, {
|
|
||||||
"id": "group2",
|
|
||||||
"name": "Group2",
|
|
||||||
"services": [
|
|
||||||
{
|
|
||||||
"id": "test2",
|
|
||||||
"name": "Test2",
|
|
||||||
"url": "http://sp-codes.de",
|
|
||||||
"statePath": "$.state"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ export class AppComponent implements OnInit {
|
||||||
this.api.getMetaInfo().subscribe(info => {
|
this.api.getMetaInfo().subscribe(info => {
|
||||||
this.title = info.title;
|
this.title = info.title;
|
||||||
this.description = info.description;
|
this.description = info.description;
|
||||||
this.translations = info.translations;
|
this.translations = info.translations || {};
|
||||||
this.htmlTitle.setTitle(this.title);
|
this.htmlTitle.setTitle(this.title);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue