Browse Source

fixes

pull/8337/head
Maksym Dudnik 3 years ago
parent
commit
6d1e583a93
  1. 2
      ui-ngx/src/app/shared/components/device/device-gateway-command.component.html
  2. 9
      ui-ngx/src/app/shared/components/device/gateway-configuration.component.scss
  3. 2
      ui-ngx/src/app/shared/components/device/gateway-service-rpc.component.ts

2
ui-ngx/src/app/shared/components/device/device-gateway-command.component.html

@ -16,7 +16,7 @@
--> -->
<div mat-dialog-content tb-toast fxLayout="column" toastTarget="dockerCommandDialogContent"> <div mat-dialog-content tb-toast fxLayout="column" toastTarget="dockerCommandDialogContent">
<span style="padding-bottom: 15px;">In order to run ThingsBoard IoT gateway (<a [href]="helpLink" target="_blank">ThingsBoard IoT gateway</a>) in docker with credentials for this device you can use the following commands.</span> <span style="padding-bottom: 15px;">In order to run ThingsBoard IoT gateway in docker with credentials for this device you can use the following commands.</span>
<div fxFlex fxLayout="row" style="justify-content: space-between; flex-grow: 0"> <div fxFlex fxLayout="row" style="justify-content: space-between; flex-grow: 0">
<mat-button-toggle-group [formControl]="selectedOSCControl" aria-label="Favorite Color" style="width: max-content; flex-grow: 0"> <mat-button-toggle-group [formControl]="selectedOSCControl" aria-label="Favorite Color" style="width: max-content; flex-grow: 0">
<mat-button-toggle [value]="osTypes.windows"><span translate>gateway.windows </span></mat-button-toggle> <mat-button-toggle [value]="osTypes.windows"><span translate>gateway.windows </span></mat-button-toggle>

9
ui-ngx/src/app/shared/components/device/gateway-configuration.component.scss

@ -193,10 +193,9 @@
.line-break { .line-break {
width: 100%; width: 100%;
} }
//
//::ng-deep.mat-mdc-slide-toggle .mdc-switch { textarea {
// position: relative; resize: none;
// transform: translateY(4px); }
//}
} }

2
ui-ngx/src/app/shared/components/device/gateway-service-rpc.component.ts

@ -94,7 +94,7 @@ export class GatewayServiceRPCComponent extends PageComponent implements AfterVi
sendCommand() { sendCommand() {
const formValues = this.commandForm.value; 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); console.log(resp);
this.commandForm.get('result').setValue(resp); this.commandForm.get('result').setValue(resp);
},error => { },error => {

Loading…
Cancel
Save