diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-05 17:34:00 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-05 17:34:00 +1200 |
commit | 3ad4dfdb80a5fb09283cbbad77c55a857419c62f (patch) | |
tree | 5d3e067374a8ff692e99256b1127d567c6d80945 /web/app | |
parent | 141830fd58ee8bff47aac5ebd8e05b6cf4d2d151 (diff) | |
download | trackermap-server-3ad4dfdb80a5fb09283cbbad77c55a857419c62f.tar.gz trackermap-server-3ad4dfdb80a5fb09283cbbad77c55a857419c62f.tar.bz2 trackermap-server-3ad4dfdb80a5fb09283cbbad77c55a857419c62f.zip |
Hide admin settings options
Diffstat (limited to 'web/app')
-rw-r--r-- | web/app/view/device/Device.js | 4 | ||||
-rw-r--r-- | web/app/view/device/DeviceController.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/web/app/view/device/Device.js b/web/app/view/device/Device.js index 98b94b97b..9cb2123dd 100644 --- a/web/app/view/device/Device.js +++ b/web/app/view/device/Device.js @@ -64,12 +64,12 @@ Ext.define('Traccar.view.device.Device', { handler: 'onUserClick' }, { text: strings.settingsServer, - disabled: true, + hidden: true, handler: 'onServerClick', reference: 'settingsServerButton' }, { text: strings.settingsUsers, - disabled: true, + hidden: true, handler: 'onUsersClick', reference: 'settingsUsersButton' }] diff --git a/web/app/view/device/DeviceController.js b/web/app/view/device/DeviceController.js index 5a0ea85df..31caa5147 100644 --- a/web/app/view/device/DeviceController.js +++ b/web/app/view/device/DeviceController.js @@ -38,8 +38,8 @@ Ext.define('Traccar.view.device.DeviceController', { init: function() { if (Traccar.getApplication().getUser().get('admin')) { - this.lookupReference('settingsServerButton').setDisabled(false); - this.lookupReference('settingsUsersButton').setDisabled(false); + this.lookupReference('settingsServerButton').setHidden(false); + this.lookupReference('settingsUsersButton').setHidden(false); } }, |