Skip to content

Commit

Permalink
Merge pull request #38 from thin-edge/fix-ui-container-group-guard
Browse files Browse the repository at this point in the history
fix(ui): display container and container-groups tabs when either type is present
  • Loading branch information
reubenmiller authored Mar 18, 2024
2 parents 1321366 + b028dd1 commit 20a08ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tedge-container-plugin-ui",
"version": "1.0.1",
"version": "1.0.2",
"description": "UI for the tedge-container-plugin to monitor installed containers and container groups.",
"scripts": {
"start": "c8ycli server -u $C8Y_URL --shell devicemanagement",
Expand Down
2 changes: 1 addition & 1 deletion ui/src/shared/container.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class ContainerGuard implements CanActivate {
return this.inventoryService
.childAdditionsList(
{ id },
{ query: `serviceType eq container`, pageSize: 1 }
{ query: `serviceType eq 'container' or serviceType eq 'container-group'`, pageSize: 1 }
)
.then(result => !!result?.data?.length);
}
Expand Down

0 comments on commit 20a08ce

Please sign in to comment.