From c97016729940502bc0f7e3ea15b21f0954ac49a0 Mon Sep 17 00:00:00 2001 From: Rasika Perera Date: Mon, 12 Jun 2017 22:43:36 +0530 Subject: [PATCH] UI fixes for geo fencing --- .../cdmf.unit.geo-dashboard/geo-dashboard.hbs | 49 +++++++---- .../cdmf.unit.geo-dashboard/geo-dashboard.js | 2 - .../html_templates/modal/exit_alert.html | 2 +- .../html_templates/modal/within_alert.html | 2 +- .../html_templates/view_fence_popup.html | 68 ++++++--------- .../Geo-ExecutionPlan-Exit_alert.siddhiql | 20 +++++ .../public/js/geo_fencing.js | 54 +++++++++--- .../public/js/geo_remote.js | 82 ++++++++++++++----- 8 files changed, 189 insertions(+), 90 deletions(-) create mode 100644 components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/public/conf/alerts/Geo-ExecutionPlan-Exit_alert.siddhiql diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/geo-dashboard.hbs b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/geo-dashboard.hbs index 1697936404..1293710eea 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/geo-dashboard.hbs +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/geo-dashboard.hbs @@ -557,10 +557,6 @@
- - - Can use this name to locate the execution plan - Name of the selected area(i.e colombo) @@ -581,7 +577,38 @@
Export +
+
+ + + +
+
+
+ + + Name of the selected area(i.e colombo) +
+
+
+
+ +
+
+ +
+
+ Export
@@ -593,10 +620,6 @@
- - - Can use this name to locate the execution plan - Name of the selected area(i.e colombo) @@ -623,7 +646,7 @@
@@ -634,10 +657,6 @@
- - - Can use this name to locate the execution plan - Name of the selected area(i.e colombo) @@ -658,7 +677,7 @@
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/geo-dashboard.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/geo-dashboard.js index cba63457dc..a01115ce1d 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/geo-dashboard.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/geo-dashboard.js @@ -45,8 +45,6 @@ function onRequest(context) { viewModel.device = device; viewModel.wsToken = token; viewModel.wsEndpoint = wsEndpoint; - log.error("----error-----"); - log.error(device); if (device.latestDeviceInfo) { viewModel.lastLocation = stringify(device.latestDeviceInfo.location); } else if (device.location) { diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/public/assets/html_templates/modal/exit_alert.html b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/public/assets/html_templates/modal/exit_alert.html index a10d767be2..8a9c9ea78c 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/public/assets/html_templates/modal/exit_alert.html +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/public/assets/html_templates/modal/exit_alert.html @@ -23,7 +23,7 @@ -