fix(service-details): show labels in service view

pull/305/head
Glowbal 2016-11-03 05:14:07 +01:00 committed by Anthony Lapenna
parent f0e194f63b
commit 8187f17d33
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ function ServiceViewModel(data) {
} else {
this.Mode = 'global';
}
if (data.Spec.Labels) {
this.Labels = data.Spec.Labels;
if (data.Spec.TaskTemplate.ContainerSpec) {
this.Labels = data.Spec.TaskTemplate.ContainerSpec.Labels;
}
if (data.Spec.TaskTemplate.ContainerSpec.Env) {
this.Env = data.Spec.TaskTemplate.ContainerSpec.Env;