fix(UAC): fix an issue with network/volume ownership update (#1552)

pull/1553/head
Anthony Lapenna 7 years ago committed by GitHub
parent f57ce8b327
commit 95b595d2a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -34,7 +34,5 @@ function ContainerViewModel(data) {
if (data.Portainer.ResourceControl) { if (data.Portainer.ResourceControl) {
this.ResourceControl = new ResourceControlViewModel(data.Portainer.ResourceControl); this.ResourceControl = new ResourceControlViewModel(data.Portainer.ResourceControl);
} }
} else {
this.ResourceControl = { Ownership: 'public' };
} }
} }

@ -19,7 +19,5 @@ function NetworkViewModel(data) {
if (data.Portainer.ResourceControl) { if (data.Portainer.ResourceControl) {
this.ResourceControl = new ResourceControlViewModel(data.Portainer.ResourceControl); this.ResourceControl = new ResourceControlViewModel(data.Portainer.ResourceControl);
} }
} else {
this.ResourceControl = { Ownership: 'public' };
} }
} }

@ -14,7 +14,5 @@ function VolumeViewModel(data) {
if (data.Portainer.ResourceControl) { if (data.Portainer.ResourceControl) {
this.ResourceControl = new ResourceControlViewModel(data.Portainer.ResourceControl); this.ResourceControl = new ResourceControlViewModel(data.Portainer.ResourceControl);
} }
} else {
this.ResourceControl = { Ownership: 'public' };
} }
} }

Loading…
Cancel
Save