Skip to content

Commit 20a08ce

Browse files
authored
Merge pull request #38 from thin-edge/fix-ui-container-group-guard
fix(ui): display container and container-groups tabs when either type is present
2 parents 1321366 + b028dd1 commit 20a08ce

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ui/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tedge-container-plugin-ui",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "UI for the tedge-container-plugin to monitor installed containers and container groups.",
55
"scripts": {
66
"start": "c8ycli server -u $C8Y_URL --shell devicemanagement",

ui/src/shared/container.guard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class ContainerGuard implements CanActivate {
1212
return this.inventoryService
1313
.childAdditionsList(
1414
{ id },
15-
{ query: `serviceType eq container`, pageSize: 1 }
15+
{ query: `serviceType eq 'container' or serviceType eq 'container-group'`, pageSize: 1 }
1616
)
1717
.then(result => !!result?.data?.length);
1818
}

0 commit comments

Comments
 (0)