1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-29 18:29:44 +02:00

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

This commit is contained in:
Glowbal 2016-11-03 05:14:07 +01:00 committed by Anthony Lapenna
parent f0e194f63b
commit 8187f17d33

View file

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