aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/SettingsMenuController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-08-14 12:26:02 +0500
committerAbyss777 <abyss@fox5.ru>2017-08-14 12:26:02 +0500
commit01af5f520e24a33d7e22523d8ed11e9f14a19516 (patch)
treebbb289a569e44b7886bb0d93adb265139a3d3884 /web/app/view/SettingsMenuController.js
parentc52d923d60815fcc6c1e9592edbcd578caf1147c (diff)
downloadtrackermap-web-01af5f520e24a33d7e22523d8ed11e9f14a19516.tar.gz
trackermap-web-01af5f520e24a33d7e22523d8ed11e9f14a19516.tar.bz2
trackermap-web-01af5f520e24a33d7e22523d8ed11e9f14a19516.zip
Implement disable Calendars
Diffstat (limited to 'web/app/view/SettingsMenuController.js')
-rw-r--r--web/app/view/SettingsMenuController.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/app/view/SettingsMenuController.js b/web/app/view/SettingsMenuController.js
index cc17ca3a..f459da7a 100644
--- a/web/app/view/SettingsMenuController.js
+++ b/web/app/view/SettingsMenuController.js
@@ -55,7 +55,8 @@ Ext.define('Traccar.view.SettingsMenuController', {
this.lookupReference('settingsGroupsButton').setHidden(false);
this.lookupReference('settingsGeofencesButton').setHidden(false);
this.lookupReference('settingsNotificationsButton').setHidden(false);
- this.lookupReference('settingsCalendarsButton').setHidden(false);
+ this.lookupReference('settingsCalendarsButton').setHidden(
+ Traccar.app.getBooleanAttributePreference('ui.disableCalendars'));
this.lookupReference('settingsDriversButton').setHidden(Traccar.app.isVehicleFeaturesDisabled() ||
Traccar.app.getBooleanAttributePreference('ui.disableDrivers'));
}