1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-08 15:25:22 +02:00

fix(docker/networks): show correct resource control data [EE-3401] (#7060)

This commit is contained in:
Chaim Lev-Ari 2022-06-17 19:21:41 +03:00 committed by GitHub
parent 18252ab854
commit 92eaa02156
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 20 additions and 15 deletions

View file

@ -33,11 +33,11 @@ export class ResourceControlViewModel {
this.TeamAccesses = data.TeamAccesses;
this.Public = data.Public;
this.System = data.System;
this.Ownership = determineOwnership(this);
this.Ownership = determineOwnership(data);
}
}
function determineOwnership(resourceControl: ResourceControlViewModel) {
function determineOwnership(resourceControl: ResourceControlResponse) {
if (resourceControl.Public) {
return ResourceControlOwnership.PUBLIC;
}