aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/SettingsMenuController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/SettingsMenuController.js')
-rw-r--r--web/app/view/SettingsMenuController.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/web/app/view/SettingsMenuController.js b/web/app/view/SettingsMenuController.js
index 6d767e3a9..48ae60aa5 100644
--- a/web/app/view/SettingsMenuController.js
+++ b/web/app/view/SettingsMenuController.js
@@ -24,6 +24,7 @@ Ext.define('Traccar.view.SettingsMenuController', {
'Traccar.view.ServerDialog',
'Traccar.view.Users',
'Traccar.view.Groups',
+ 'Traccar.view.Geofences',
'Traccar.view.BaseWindow'
],
@@ -50,6 +51,16 @@ Ext.define('Traccar.view.SettingsMenuController', {
}).show();
},
+ onGeofencesClick: function () {
+ Ext.create('Traccar.view.BaseWindow', {
+ title: Strings.sharedGeofences,
+ modal: false,
+ items: {
+ xtype: 'geofencesView'
+ }
+ }).show();
+ },
+
onServerClick: function () {
var dialog = Ext.create('Traccar.view.ServerDialog');
dialog.down('form').loadRecord(Traccar.app.getServer());