diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-08 18:53:12 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-08 18:53:12 +1300 |
commit | 401ee249a4c7b0de5eeaf32d1cbee4fd0d82a7a8 (patch) | |
tree | fcc70bbaa11e4e0b683134496007bdafc1110598 /web/app/view/SettingsMenuController.js | |
parent | 4966403aab46912dd29b8385b6050e95c47c295f (diff) | |
download | trackermap-web-401ee249a4c7b0de5eeaf32d1cbee4fd0d82a7a8.tar.gz trackermap-web-401ee249a4c7b0de5eeaf32d1cbee4fd0d82a7a8.tar.bz2 trackermap-web-401ee249a4c7b0de5eeaf32d1cbee4fd0d82a7a8.zip |
Implement statistics report view
Diffstat (limited to 'web/app/view/SettingsMenuController.js')
-rw-r--r-- | web/app/view/SettingsMenuController.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/web/app/view/SettingsMenuController.js b/web/app/view/SettingsMenuController.js index eee0097b..9d547c55 100644 --- a/web/app/view/SettingsMenuController.js +++ b/web/app/view/SettingsMenuController.js @@ -28,6 +28,7 @@ Ext.define('Traccar.view.SettingsMenuController', { 'Traccar.view.Geofences', 'Traccar.view.Notifications', 'Traccar.view.AttributeAliases', + 'Traccar.view.Statistics', 'Traccar.view.BaseWindow' ], @@ -38,6 +39,7 @@ Ext.define('Traccar.view.SettingsMenuController', { if (admin) { this.lookupReference('settingsServerButton').setHidden(false); this.lookupReference('settingsUsersButton').setHidden(false); + this.lookupReference('settingsStatisticsButton').setHidden(false); } if (admin || !readonly) { this.lookupReference('settingsGroupsButton').setHidden(false); @@ -110,6 +112,16 @@ Ext.define('Traccar.view.SettingsMenuController', { }).show(); }, + onStatisticsClick: function () { + Ext.create('Traccar.view.BaseWindow', { + title: Strings.statisticsTitle, + modal: false, + items: { + xtype: 'statisticsView' + } + }).show(); + }, + onLogoutClick: function () { Ext.create('Traccar.view.LoginController').logout(); } |