Skip to content

Commit 3125092

Browse files
PR changes.
1 parent 8ee8116 commit 3125092

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

src/app/applications/datatarget/fiware/fiware-edit/fiware-edit.component.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,15 @@ export class FiwareEditComponent implements DatatargetEdit, OnInit, OnDestroy {
272272
this.scrollToTopService.scrollToTop();
273273
}
274274

275-
routeToDatatargets = () => this.router.navigate(["applications", this.applicationId, "data-targets"]);
275+
routeToDatatargets() {
276+
this.router.navigate(["applications", this.applicationId, "data-targets"]);
277+
}
276278

277-
routeToCreatedDatatarget = () =>
279+
routeToCreatedDatatarget() {
278280
this.router.navigate(["applications", this.applicationId, "datatarget", this.datatarget.id], {
279281
replaceUrl: true,
280282
});
281-
283+
}
282284
onCoordinateKey(event: any) {
283285
if (event.target.value.length > event.target.maxLength) {
284286
event.target.value = event.target.value.slice(0, event.target.maxLength);

src/app/applications/datatarget/httppush/httppush-edit/httppush-edit.component.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,15 @@ export class HttppushEditComponent implements DatatargetEdit, OnInit, OnDestroy
282282
this.scrollToTopService.scrollToTop();
283283
}
284284

285-
routeToDatatargets = () => this.router.navigate(["applications", this.applicationId, "data-targets"]);
286-
routeToCreatedDatatarget = () =>
285+
routeToDatatargets() {
286+
this.router.navigate(["applications", this.applicationId, "data-targets"]);
287+
}
288+
289+
routeToCreatedDatatarget() {
287290
this.router.navigate(["applications", this.applicationId, "datatarget", this.datatarget.id], {
288291
replaceUrl: true,
289292
});
293+
}
290294

291295
onCoordinateKey(event: any) {
292296
if (event.target.value.length > event.target.maxLength) {

src/app/applications/datatarget/mqtt-edit/mqtt-edit.component.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,15 @@ export class MqttEditComponent implements DatatargetEdit, OnInit, OnDestroy {
9090
this.errorMessages = errors.errorMessages;
9191
this.scrollToTopService.scrollToTop();
9292
}
93-
routeToDatatargets = () => this.router.navigate(["applications", this.applicationId, "data-targets"]);
93+
routeToDatatargets() {
94+
this.router.navigate(["applications", this.applicationId, "data-targets"]);
95+
}
9496

95-
routeToCreatedDatatarget = () =>
97+
routeToCreatedDatatarget() {
9698
this.router.navigate(["applications", this.applicationId, "datatarget", this.datatarget.id], {
9799
replaceUrl: true,
98100
});
101+
}
99102

100103
getDatatarget(id: number) {
101104
this.datatargetSubscription = this.datatargetService.get(id).subscribe((response: Datatarget) => {

0 commit comments

Comments
 (0)