aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-11-19 14:21:52 +0500
committerAbyss777 <abyss@fox5.ru>2016-11-19 14:21:52 +0500
commitdb73507fe57ed39a79e8786c655c47f10bb20236 (patch)
treeff3b49dc58ed356663f6a95250e89d52c52971af /web
parentd8e0a38c6626b48f27ad9fc92afb6a548bdaa52a (diff)
downloadtrackermap-web-db73507fe57ed39a79e8786c655c47f10bb20236.tar.gz
trackermap-web-db73507fe57ed39a79e8786c655c47f10bb20236.tar.bz2
trackermap-web-db73507fe57ed39a79e8786c655c47f10bb20236.zip
Add disabled and expirationTime columns
Diffstat (limited to 'web')
-rw-r--r--web/app/view/Users.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/web/app/view/Users.js b/web/app/view/Users.js
index f4b27337..ba594c46 100644
--- a/web/app/view/Users.js
+++ b/web/app/view/Users.js
@@ -81,6 +81,20 @@ Ext.define('Traccar.view.Users', {
}, {
text: Strings.userAdmin,
dataIndex: 'admin'
+ }, {
+ text: Strings.userDisabled,
+ dataIndex: 'disabled'
+ }, {
+ text: Strings.userExpirationTime,
+ dataIndex: 'expirationTime',
+ hidden: true,
+ renderer: function (value) {
+ if (Traccar.app.getPreference('twelveHourFormat', false)) {
+ return Ext.Date.format(value, Traccar.Style.dateTimeFormat12);
+ } else {
+ return Ext.Date.format(value, Traccar.Style.dateTimeFormat24);
+ }
+ }
}]
}
});