aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/SettingsMenuController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-08-18 15:40:39 +0500
committerAbyss777 <abyss@fox5.ru>2017-08-18 15:40:39 +0500
commitf26159a40b3b23fbd63de312f121b1fe1bf64bd1 (patch)
treee11eb5ae16c18feaa24844aae8305de472e140b1 /web/app/view/SettingsMenuController.js
parentd1d7d230a0262d9f6ae05f1c4c6718699edb8de3 (diff)
downloadtrackermap-web-f26159a40b3b23fbd63de312f121b1fe1bf64bd1.tar.gz
trackermap-web-f26159a40b3b23fbd63de312f121b1fe1bf64bd1.tar.bz2
trackermap-web-f26159a40b3b23fbd63de312f121b1fe1bf64bd1.zip
- Detach common known attributes
- Rename function
Diffstat (limited to 'web/app/view/SettingsMenuController.js')
-rw-r--r--web/app/view/SettingsMenuController.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/app/view/SettingsMenuController.js b/web/app/view/SettingsMenuController.js
index 7985700a..7175260c 100644
--- a/web/app/view/SettingsMenuController.js
+++ b/web/app/view/SettingsMenuController.js
@@ -45,7 +45,7 @@ Ext.define('Traccar.view.SettingsMenuController', {
if (admin) {
this.lookupReference('settingsServerButton').setHidden(false);
this.lookupReference('settingsStatisticsButton').setHidden(false);
- this.lookupReference('settingsDeviceDistanceButton').setHidden(Traccar.app.isVehicleFeaturesDisabled());
+ this.lookupReference('settingsDeviceDistanceButton').setHidden(Traccar.app.getVehicleFeaturesDisabled());
}
if (admin || manager) {
this.lookupReference('settingsUsersButton').setHidden(false);
@@ -57,8 +57,8 @@ Ext.define('Traccar.view.SettingsMenuController', {
this.lookupReference('settingsNotificationsButton').setHidden(false);
this.lookupReference('settingsCalendarsButton').setHidden(
Traccar.app.getBooleanAttributePreference('ui.disableCalendars'));
- this.lookupReference('settingsDriversButton').setHidden(Traccar.app.isVehicleFeaturesDisabled() ||
- Traccar.app.getBooleanAttributePreference('ui.disableDrivers'));
+ this.lookupReference('settingsDriversButton').setHidden(
+ Traccar.app.getVehicleFeaturesDisabled() || Traccar.app.getBooleanAttributePreference('ui.disableDrivers'));
}
if (admin || !deviceReadonly && !readonly) {
this.lookupReference('settingsAttributeAliasesButton').setHidden(false);