From 6d1e583a9320cff2bd98371bd1c923420cab60b8 Mon Sep 17 00:00:00 2001 From: Maksym Dudnik Date: Wed, 24 May 2023 15:36:57 +0300 Subject: [PATCH] fixes --- .../device/device-gateway-command.component.html | 2 +- .../device/gateway-configuration.component.scss | 9 ++++----- .../components/device/gateway-service-rpc.component.ts | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ui-ngx/src/app/shared/components/device/device-gateway-command.component.html b/ui-ngx/src/app/shared/components/device/device-gateway-command.component.html index 0b3dbc7344..b963a18aaf 100644 --- a/ui-ngx/src/app/shared/components/device/device-gateway-command.component.html +++ b/ui-ngx/src/app/shared/components/device/device-gateway-command.component.html @@ -16,7 +16,7 @@ -->
- In order to run ThingsBoard IoT gateway (ThingsBoard IoT gateway) in docker with credentials for this device you can use the following commands. + In order to run ThingsBoard IoT gateway in docker with credentials for this device you can use the following commands.
gateway.windows diff --git a/ui-ngx/src/app/shared/components/device/gateway-configuration.component.scss b/ui-ngx/src/app/shared/components/device/gateway-configuration.component.scss index d8d121a722..7d3f357589 100644 --- a/ui-ngx/src/app/shared/components/device/gateway-configuration.component.scss +++ b/ui-ngx/src/app/shared/components/device/gateway-configuration.component.scss @@ -193,10 +193,9 @@ .line-break { width: 100%; } - // - //::ng-deep.mat-mdc-slide-toggle .mdc-switch { - // position: relative; - // transform: translateY(4px); - //} + + textarea { + resize: none; + } } diff --git a/ui-ngx/src/app/shared/components/device/gateway-service-rpc.component.ts b/ui-ngx/src/app/shared/components/device/gateway-service-rpc.component.ts index 1dc88c8e0f..c5891019cc 100644 --- a/ui-ngx/src/app/shared/components/device/gateway-service-rpc.component.ts +++ b/ui-ngx/src/app/shared/components/device/gateway-service-rpc.component.ts @@ -94,7 +94,7 @@ export class GatewayServiceRPCComponent extends PageComponent implements AfterVi sendCommand() { const formValues = this.commandForm.value; - this.ctx.controlApi.sendTwoWayCommand(formValues.command.toLowerCase(), {},formValues.time).subscribe(resp=>{ + this.ctx.controlApi.sendTwoWayCommand('gateway_'+formValues.command.toLowerCase(), {},formValues.time).subscribe(resp=>{ console.log(resp); this.commandForm.get('result').setValue(resp); },error => {