aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/SettingsMenuController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-12-14 17:00:25 +0500
committerAbyss777 <abyss@fox5.ru>2016-12-14 17:00:25 +0500
commiteec9ffbf8213f1df69162131245cb3282c68ca0a (patch)
treeb7314f43c0225ec0bfb04d7fda93df5c6f1e1934 /web/app/view/SettingsMenuController.js
parent36f645e0d3def24ea6228c0974b83f60503d9ea6 (diff)
downloadtrackermap-web-eec9ffbf8213f1df69162131245cb3282c68ca0a.tar.gz
trackermap-web-eec9ffbf8213f1df69162131245cb3282c68ca0a.tar.bz2
trackermap-web-eec9ffbf8213f1df69162131245cb3282c68ca0a.zip
Calendars implementation
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 2b4b9209..2f1685f0 100644
--- a/web/app/view/SettingsMenuController.js
+++ b/web/app/view/SettingsMenuController.js
@@ -30,6 +30,7 @@ Ext.define('Traccar.view.SettingsMenuController', {
'Traccar.view.AttributeAliases',
'Traccar.view.Statistics',
'Traccar.view.DeviceDistanceDialog',
+ 'Traccar.view.Calendars',
'Traccar.view.BaseWindow'
],
@@ -47,6 +48,7 @@ Ext.define('Traccar.view.SettingsMenuController', {
this.lookupReference('settingsGroupsButton').setHidden(false);
this.lookupReference('settingsGeofencesButton').setHidden(false);
this.lookupReference('settingsAttributeAliasesButton').setHidden(false);
+ this.lookupReference('settingsCalendarsButton').setHidden(false);
}
},
@@ -130,6 +132,16 @@ Ext.define('Traccar.view.SettingsMenuController', {
dialog.show();
},
+ onCalendarsClick: function () {
+ Ext.create('Traccar.view.BaseWindow', {
+ title: Strings.sharedCalendars,
+ modal: false,
+ items: {
+ xtype: 'calendarsView'
+ }
+ }).show();
+ },
+
onLogoutClick: function () {
Ext.create('Traccar.view.LoginController').logout();
}