Skip to content

Commit 2830bb6

Browse files
author
Jeppe Elkjær Jørgensen
committed
IOT-505, IOT-506 fix
1 parent 1f259e3 commit 2830bb6

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/app/shared/form/form-body-datatarget/form-body-datatarget.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</div>
4545
</div>
4646
<div *ngIf="datatargetid === 0">
47-
<h4>Efter oprettelse af dit data target dette parres det med en payload decoder og iot-devices</h4>
47+
<h4> {{'QUESTION.DATATARGET.RELATIONS' | translate}} </h4>
4848
</div>
4949
<div class="container row" style="margin-top: 5%" *ngIf="datatargetid > 0">
5050
<a (click)="addRow()" class="btn btn-secondary">{{'QUESTION.ADD-RELATIONS' | translate}}</a>

src/app/views/datatarget/datatarget/datatarget.component.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ <h4>{{ 'DATATARGET.TYPE' | translate }}</h4>
3939
<div class="col-12 col-sm-12">
4040
<h4>{{ 'DATATARGET.RELATIONS' | translate }}</h4>
4141
</div>
42+
<div *ngIf="dataTargetRelations.length === 0">
43+
<p>{{'DATATARGET.NO-RELATIONS' | translate}}</p>
44+
</div>
4245
<div class="col-12 pt-2 col-sm-8" *ngFor="let relation of dataTargetRelations">
4346
<p>{{'DATATARGET.DATATARGET' | translate}}</p>
4447
<ul>

src/assets/i18n/da.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959
"DELETE": "Slet",
6060
"RELATIONS": "Tilknyttede IoT enheder og payload decoders",
6161
"DATATARGET": "Data Target navn:",
62-
"IOTDEVICE": "IoT Device navn:"
62+
"IOTDEVICE": "IoT Device navn:",
63+
"NO-RELATIONS": "ingen tilknyttede relationer"
6364
},
6465
"APPLICATION-TABLE": {
6566
"NAME": "NAVN",
@@ -258,7 +259,8 @@
258259
"SELECT-PAYLOADDECODER": "Vælg payload decoder",
259260
"SELECT-DEVICES": "Vælg enheder",
260261
"SELECTALLDEVICES": "Vælg alle",
261-
"DESELECTALLDEVICES": "Fravælg alle"
262+
"DESELECTALLDEVICES": "Fravælg alle",
263+
"RELATIONS": "Efter oprettelse af dit data target parres dette med en/flere payload decoder(s) og IoT-devices"
262264
}
263265
},
264266
"QUESTION-LORA-GATEWAY": {

0 commit comments

Comments
 (0)