aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/map
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-05-31 16:55:00 +0500
committerAbyss777 <abyss@fox5.ru>2017-05-31 16:55:08 +0500
commit35e8f4b4974515733737c5cc1dd439ca47860007 (patch)
tree21f5e7cc17e982e2c5b52682dfac29943e39199d /web/app/view/map
parent0e598a6232e9cd7188916e06077862d6630a255b (diff)
downloadetbsa-traccar-web-35e8f4b4974515733737c5cc1dd439ca47860007.tar.gz
etbsa-traccar-web-35e8f4b4974515733737c5cc1dd439ca47860007.tar.bz2
etbsa-traccar-web-35e8f4b4974515733737c5cc1dd439ca47860007.zip
Implement Events panel
Diffstat (limited to 'web/app/view/map')
-rw-r--r--web/app/view/map/Map.js12
-rw-r--r--web/app/view/map/MapController.js5
2 files changed, 12 insertions, 5 deletions
diff --git a/web/app/view/map/Map.js b/web/app/view/map/Map.js
index d4e654e..82b76ee 100644
--- a/web/app/view/map/Map.js
+++ b/web/app/view/map/Map.js
@@ -52,6 +52,13 @@ Ext.define('Traccar.view.map.Map', {
enableToggle: false,
tooltip: Strings.reportTitle
}, {
+ handler: 'showEvents',
+ reference: 'showEventsButton',
+ glyph: 'xf27b@FontAwesome',
+ stateful: false,
+ enableToggle: false,
+ tooltip: Strings.reportEvents
+ }, {
handler: 'updateGeofences',
reference: 'showGeofencesButton',
glyph: 'xf21d@FontAwesome',
@@ -71,11 +78,6 @@ Ext.define('Traccar.view.map.Map', {
stateId: 'device-follow-button',
toggleHandler: 'onFollowClick'
}, {
- id: 'soundButton',
- glyph: 'xf0a2@FontAwesome',
- tooltip: Strings.sharedSound,
- stateId: 'sound-button'
- }, {
xtype: 'settingsMenu',
enableToggle: false
}]
diff --git a/web/app/view/map/MapController.js b/web/app/view/map/MapController.js
index 8a5e81c..02d4e38 100644
--- a/web/app/view/map/MapController.js
+++ b/web/app/view/map/MapController.js
@@ -45,12 +45,17 @@ Ext.define('Traccar.view.map.MapController', {
init: function () {
this.callParent();
this.lookupReference('showReportsButton').setVisible(Traccar.app.isMobile());
+ this.lookupReference('showEventsButton').setVisible(Traccar.app.isMobile());
},
showReports: function () {
Traccar.app.showReports(true);
},
+ showEvents: function () {
+ Traccar.app.showEvents(true);
+ },
+
onFollowClick: function (button, pressed) {
if (pressed && this.selectedMarker) {
this.getView().getMapView().setCenter(this.selectedMarker.getGeometry().getCoordinates());