Skip to content

Commit

Permalink
#23798 remove system containers from list and addressed PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
zulqarnainvd committed Feb 15, 2023
1 parent 2eb1f07 commit a3945c3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[mapItems]="getContainersWithDisabledEntities"
(selectedItems)="updateSelectedContainers($event)"
(rowWasClicked)="handleRowClick($event)"
url="v1/containers?system=true"
url="v1/containers"
dataKey="inode"
>
<div class="container-listing__header-options">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,17 @@ export class ContainerListComponent implements OnDestroy {
*/
getContainersWithDisabledEntities(containers: DotContainer[]): DotContainer[] {
return containers.map((container) => {
container.disableInteraction =
container.identifier.includes('/') ||
container.identifier === 'SYSTEM_CONTAINER' ||
container.source === CONTAINER_SOURCE.FILE;

if (container.path) {
container.pathName = new URL(`http:${container.path}`).pathname;
const copyContainer = structuredClone(container);
copyContainer.disableInteraction =
copyContainer.identifier.includes('/') ||
copyContainer.identifier === 'SYSTEM_CONTAINER' ||
copyContainer.source === CONTAINER_SOURCE.FILE;

if (copyContainer.path) {
copyContainer.pathName = new URL(`http:${container.path}`).pathname;
}

return container;
return copyContainer;
});
}

Expand Down

0 comments on commit a3945c3

Please sign in to comment.