Skip to content

Commit

Permalink
added back "type" field
Browse files Browse the repository at this point in the history
  • Loading branch information
cpoder committed Sep 20, 2024
1 parent e3d6299 commit 64fc06f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/lora-package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lora-package",
"version": "1.1.0",
"version": "1.1.1",
"description": "This is the Cumulocity LoRa plugin.",
"scripts": {
"start": "c8ycli server --env.extraWebpackConfig=./extra-webpack.config.js -u https://lora-dev.cumulocity.com --shell devicemanagement",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ <h4 class="card-title">{{ "Register devices" | translate }}</h4>
<i class="fa fw dlt-c8y-icon-help-outline text-primary"></i>
</button>
</th>
<th>Type</th>
<th>Codec</th>
<th>Model</th>
<ng-container *ngIf="properties">
Expand Down Expand Up @@ -132,6 +133,12 @@ <h4 class="card-title">{{ "Register devices" | translate }}</h4>
</c8y-messages>
</c8y-form-group>
</td>
<td>
<c8y-form-group class="form-group-sm">
<input class="form-control" #type="ngModel" name="type" [(ngModel)]="pdevice.type"
aria-describedby="type" (paste)="onPaste($event, index)" />
</c8y-form-group>
</td>
<td>
<c8y-form-group class="form-group-sm" [hasError]="codec.invalid && (codec.dirty || codec.touched)">
<select class="form-control" #codec="ngModel" name="codec" [(ngModel)]="pdevice.codec"
Expand Down
4 changes: 3 additions & 1 deletion web/lora-package/src/onboarding/devices/devices.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ export class LoraDevicesComponent {
devEUI: "",
appEUI: "",
appKey: "",
type: "",
codec: "",
model: "",
},
Expand All @@ -521,6 +522,7 @@ export class LoraDevicesComponent {
devEUI: "",
appEUI: "",
appKey: "",
type: "",
codec: "",
model: "",
});
Expand Down Expand Up @@ -595,7 +597,7 @@ export class LoraDevicesComponent {
pdevice.devEUI,
pdevice.appEUI,
pdevice.appKey,
"",
pdevice.type,
pdevice.codec,
pdevice.model,
this.provisionDevice.instanceSelect,
Expand Down

0 comments on commit 64fc06f

Please sign in to comment.