diff --git a/frontend/cumulocity-amber-boonlogic/package.json b/frontend/cumulocity-amber-boonlogic/package.json index c64efd3..7bc3380 100644 --- a/frontend/cumulocity-amber-boonlogic/package.json +++ b/frontend/cumulocity-amber-boonlogic/package.json @@ -3,7 +3,7 @@ "version": "2.0.2", "description": "This is the Cumulocity module federation plugin which used to configure/reconfigure/delete/start - stop stream any device with Amber and is designed to display device model and streaming status on real time basis.", "scripts": { - "start": "c8ycli server ", + "start": "c8ycli server", "build": "c8ycli build --env.mode=production", "deploy": "c8ycli deploy", "postinstall": "ngcc", diff --git a/frontend/cumulocity-amber-boonlogic/widget/boonlogic-widget/gp-boonlogic.component.css b/frontend/cumulocity-amber-boonlogic/widget/boonlogic-widget/gp-boonlogic.component.css index 0be0c7d..d8ac0db 100644 --- a/frontend/cumulocity-amber-boonlogic/widget/boonlogic-widget/gp-boonlogic.component.css +++ b/frontend/cumulocity-amber-boonlogic/widget/boonlogic-widget/gp-boonlogic.component.css @@ -23,9 +23,10 @@ width: 20px; background-color: #bbb; border-radius: 50%; - display: inline-block; + display: inline-block !important; } + .boonlogictable { background-color: var(--component-background, #fff); } diff --git a/frontend/cumulocity-amber-boonlogic/widget/boonlogic-widget/gp-boonlogic.component.html b/frontend/cumulocity-amber-boonlogic/widget/boonlogic-widget/gp-boonlogic.component.html index 1e25ed8..40d2585 100644 --- a/frontend/cumulocity-amber-boonlogic/widget/boonlogic-widget/gp-boonlogic.component.html +++ b/frontend/cumulocity-amber-boonlogic/widget/boonlogic-widget/gp-boonlogic.component.html @@ -193,7 +193,7 @@

Device Configuration

class="modal" tabindex="-1" role="dialog" - [ngStyle]="{ display: displayDeRegisterStyle }" + [ngStyle]="{ display:displayDeRegisterStyle }" > > diff --git a/frontend/cumulocity-amber-boonlogic/widget/boonlogic-widget/gp-boonlogic.component.ts b/frontend/cumulocity-amber-boonlogic/widget/boonlogic-widget/gp-boonlogic.component.ts index 572620a..7a7f433 100644 --- a/frontend/cumulocity-amber-boonlogic/widget/boonlogic-widget/gp-boonlogic.component.ts +++ b/frontend/cumulocity-amber-boonlogic/widget/boonlogic-widget/gp-boonlogic.component.ts @@ -232,6 +232,7 @@ export class GpBoonlogicComponent implements OnInit, DoCheck, OnDestroy { async manageRealtime(device: any): Promise { if (this.realtimeState) { const index = this.pagedItems.findIndex((element: { id: any }) => element.id === device.id); + if(device.c8y_AmberSensorConfiguration){ const isStreaming = String(device.c8y_AmberSensorConfiguration.isStreaming); const arr = { id: device.id, @@ -257,6 +258,8 @@ export class GpBoonlogicComponent implements OnInit, DoCheck, OnDestroy { } } } +} + openModal(template: TemplateRef): void { this.modalRef = this.modalService.show(template); diff --git a/frontend/cumulocity-amberBoonLogic-config-widget/projects/gp-boonlogic/src/lib/gp-boonlogic.component.html b/frontend/cumulocity-amberBoonLogic-config-widget/projects/gp-boonlogic/src/lib/gp-boonlogic.component.html index e42060e..a8b4987 100644 --- a/frontend/cumulocity-amberBoonLogic-config-widget/projects/gp-boonlogic/src/lib/gp-boonlogic.component.html +++ b/frontend/cumulocity-amberBoonLogic-config-widget/projects/gp-boonlogic/src/lib/gp-boonlogic.component.html @@ -149,7 +149,7 @@

Device Configuration

@@ -167,7 +167,7 @@

Device Configuration