Skip to content

Commit

Permalink
updated the button and view
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhya committed Jul 26, 2023
1 parent 44eb698 commit 0e7f8cf
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 59 deletions.
4 changes: 2 additions & 2 deletions frontend/cumulocity-amber-boonlogic/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "cumulocity-amber-boonlogic",
"version": "2.0.1",
"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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ <h3 class="m-b-16">
<td>
<button
class="editbtn btn btn-icon btn-xs btn-default"
[disabled]="device.isStreaming === 'true' || statusResponse != 'READY'"
[enable]="device.isStreaming === 'false' || statusResponse != 'READY'"
title="View"
>
<i
Expand All @@ -306,6 +306,7 @@ <h4 class="modal-title text-normal text-center" translate="">
View Device Configuration
</h4>
</div>

<div
class="modal-body d-grid grid__col--4-4--md"
style="margin-top: 10px; margin-bottom: 5px; margin-left: 24px; margin-right: 24px"
Expand All @@ -316,22 +317,22 @@ <h4 class="modal-title text-normal text-center" translate="">
>Select Measurement</label
>
<div class="form-group">
<ng-select
<ng-select
required
[items]="measurementTypeList"
bindLabel="description"
bindValue="description"
name="measurementSelect"
required
[multiple]="false"
[multiple]="true"
[closeOnSelect]="false"
[searchable]="true"
placeholder="Select Measurements"
[(ngModel)]="selectedMeasurements"
formControlName="devicemeasure"
(change)="invokeUpdateSetValue()"
>
</ng-select>
[readonly]="true" >
</ng-select>
</div>
</div>
<div bg-gray-white card-block large-padding>
Expand All @@ -348,7 +349,7 @@ <h4 class="modal-title text-normal text-center" translate="">
class="dlt-c8y-icon-question-circle"
></i
></label>
<input
<input
formControlName="streamingWindowSize"
type="number"
min="1"
Expand All @@ -357,7 +358,7 @@ <h4 class="modal-title text-normal text-center" translate="">
[(ngModel)]="streamingWindowSize"
class="form-control"
placeholder="e.g. 25"
/>
readonly/>
</div>
</div>
<div class="col-sm-5 col-xs-6">
Expand All @@ -380,7 +381,7 @@ <h4 class="modal-title text-normal text-center" translate="">
[(ngModel)]="samplesToBuffer"
class="form-control"
placeholder="e.g. 5000"
/>
readonly />
</div>
</div>
<div class="col-sm-5 col-xs-6">
Expand All @@ -403,7 +404,7 @@ <h4 class="modal-title text-normal text-center" translate="">
[(ngModel)]="learningRateNumerator"
class="form-control"
placeholder="e.g. 10"
/>
readonly />
</div>
</div>
<div class="col-sm-5 col-xs-6">
Expand All @@ -426,7 +427,7 @@ <h4 class="modal-title text-normal text-center" translate="">
[(ngModel)]="learningRateDenominator"
class="form-control"
placeholder="e.g. 10000"
/>
readonly />
</div>
</div>
<div class="col-sm-5 col-xs-6">
Expand All @@ -449,7 +450,7 @@ <h4 class="modal-title text-normal text-center" translate="">
[(ngModel)]="learningMaxSamples"
class="form-control"
placeholder="e.g. 10000"
/>
readonly />
</div>
</div>
<div class="col-sm-5 col-xs-6">
Expand All @@ -472,7 +473,7 @@ <h4 class="modal-title text-normal text-center" translate="">
[(ngModel)]="anomalyHistoryWindow"
class="form-control"
placeholder="e.g. 1000"
/>
readonly/>
</div>
</div>
</div>
Expand All @@ -487,7 +488,7 @@ <h4 class="modal-title text-normal text-center" translate="">
(click)="closeUpdateSensor()"
translate=""
>
Cancel
OK
</button>
<!-- <button
type="button"
Expand Down
Loading

0 comments on commit 0e7f8cf

Please sign in to comment.