mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(service-creation): add support for container labels (#365)
This commit is contained in:
parent
868b400af3
commit
b3a641e15a
6 changed files with 94 additions and 3 deletions
|
@ -35,8 +35,9 @@ function ServiceViewModel(data) {
|
|||
} else {
|
||||
this.Mode = 'global';
|
||||
}
|
||||
this.Labels = data.Spec.Labels;
|
||||
if (data.Spec.TaskTemplate.ContainerSpec) {
|
||||
this.Labels = data.Spec.TaskTemplate.ContainerSpec.Labels;
|
||||
this.ContainerLabels = data.Spec.TaskTemplate.ContainerSpec.Labels;
|
||||
}
|
||||
if (data.Spec.TaskTemplate.ContainerSpec.Env) {
|
||||
this.Env = data.Spec.TaskTemplate.ContainerSpec.Env;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue