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:
parent
18252ab854
commit
92eaa02156
6 changed files with 20 additions and 15 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue