From e8850343bdb1e5e6a1c366aeacdff1f91bfa5daf Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 17 Nov 2016 22:48:33 +1300 Subject: Add user expiration and device limit --- web/app/view/UserDialogController.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'web/app/view/UserDialogController.js') diff --git a/web/app/view/UserDialogController.js b/web/app/view/UserDialogController.js index 7c5cebd8..cd0a9512 100644 --- a/web/app/view/UserDialogController.js +++ b/web/app/view/UserDialogController.js @@ -21,8 +21,11 @@ Ext.define('Traccar.view.UserDialogController', { init: function () { if (Traccar.app.getUser().get('admin')) { - this.lookupReference('adminField').setDisabled(false); - this.lookupReference('readonlyField').setDisabled(false); + this.lookupReference('adminField').setHidden(false); + this.lookupReference('readonlyField').setHidden(false); + this.lookupReference('disabledField').setHidden(false); + this.lookupReference('expirationTimeField').setDisabled(false); + this.lookupReference('deviceLimitField').setDisabled(false); } }, -- cgit v1.2.3