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:
parent
f0e194f63b
commit
8187f17d33
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue