aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/SettingsMenuController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-10-08 18:53:12 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-10-08 18:53:12 +1300
commit401ee249a4c7b0de5eeaf32d1cbee4fd0d82a7a8 (patch)
treefcc70bbaa11e4e0b683134496007bdafc1110598 /web/app/view/SettingsMenuController.js
parent4966403aab46912dd29b8385b6050e95c47c295f (diff)
downloadetbsa-traccar-web-401ee249a4c7b0de5eeaf32d1cbee4fd0d82a7a8.tar.gz
etbsa-traccar-web-401ee249a4c7b0de5eeaf32d1cbee4fd0d82a7a8.tar.bz2
etbsa-traccar-web-401ee249a4c7b0de5eeaf32d1cbee4fd0d82a7a8.zip
Implement statistics report view
Diffstat (limited to 'web/app/view/SettingsMenuController.js')
-rw-r--r--web/app/view/SettingsMenuController.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/web/app/view/SettingsMenuController.js b/web/app/view/SettingsMenuController.js
index eee0097..9d547c5 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();
}