diff options
author | Aijana Schumann <aijana.schumann@highstreet-technologies.com> | 2021-02-18 10:55:11 +0100 |
---|---|---|
committer | Aijana Schumann <aijana.schumann@highstreet-technologies.com> | 2021-02-18 10:55:11 +0100 |
commit | f333557c8bf0a74eb7b88d6294dea2a420b1ec61 (patch) | |
tree | 696dabd7e02e97f53ff936e54543a31944696c3d /sdnr/wt/odlux/apps/networkMapApp/src/actions/mapActions.ts | |
parent | 5cf15b27796b68b3edbfc1e59f258dee1e10b2b9 (diff) |
Update NetworkMap and LinkCalculator
Update NetworkMap and LinkCalculator to use the topology-server-v2 API, minior bugfixes for NetworkMap
Issue-ID: CCSDK-3172
Signed-off-by: Aijana Schumann <aijana.schumann@highstreet-technologies.com>
Change-Id: Ia5690c5039d7a9431443bc131fe398cc79d08287
Diffstat (limited to 'sdnr/wt/odlux/apps/networkMapApp/src/actions/mapActions.ts')
-rw-r--r-- | sdnr/wt/odlux/apps/networkMapApp/src/actions/mapActions.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sdnr/wt/odlux/apps/networkMapApp/src/actions/mapActions.ts b/sdnr/wt/odlux/apps/networkMapApp/src/actions/mapActions.ts index b8af40b0c..9830c06e4 100644 --- a/sdnr/wt/odlux/apps/networkMapApp/src/actions/mapActions.ts +++ b/sdnr/wt/odlux/apps/networkMapApp/src/actions/mapActions.ts @@ -21,7 +21,7 @@ import { Dispatch } from '../../../../framework/src/flux/store'; import { link } from "../model/link"; -import { site } from "../model/site"; +import { Site } from "../model/site"; import { Feature } from '../model/Feature'; import { URL_API } from '../config'; @@ -33,7 +33,7 @@ export class HighlightLinkAction extends Action{ } export class HighlightSiteAction extends Action{ - constructor(public site: site){ + constructor(public site: Site){ super(); } } @@ -51,7 +51,7 @@ export class ZoomToSearchResultAction extends Action{ } export class AddAlarmAction extends Action{ - constructor(public element: Feature){ + constructor(public site: Site){ super(); } } @@ -75,7 +75,8 @@ export class SetIconSwitchAction extends Action{ } export const findSiteToAlarm = (alarmedNodeId: string) => (dispatcher: Dispatch) =>{ - fetch(URL_API+"/site/geojson/device/"+alarmedNodeId) + //TODO: fix! + fetch(URL_API+"/sites/devices/"+alarmedNodeId) .then(res => res.json()) .then(result=>{ dispatcher(new AddAlarmAction(result)); |