aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-09 22:55:32 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-09 22:55:32 +1200
commit804421836ad9c4c8ab34415a3f00c3e7ad0af524 (patch)
tree31d608a19501051719b45cc2ab4a13be1d8d1bc7
parentf3848ee9bfc3d6c8cbf30b2aaf013af1d236b570 (diff)
downloadtrackermap-server-804421836ad9c4c8ab34415a3f00c3e7ad0af524.tar.gz
trackermap-server-804421836ad9c4c8ab34415a3f00c3e7ad0af524.tar.bz2
trackermap-server-804421836ad9c4c8ab34415a3f00c3e7ad0af524.zip
Add user devices button
-rw-r--r--web/app/view/user/User.js5
-rw-r--r--web/app/view/user/UserController.js15
2 files changed, 20 insertions, 0 deletions
diff --git a/web/app/view/user/User.js b/web/app/view/user/User.js
index 69498310f..b5d216aea 100644
--- a/web/app/view/user/User.js
+++ b/web/app/view/user/User.js
@@ -41,6 +41,11 @@ Ext.define('Traccar.view.user.User', {
disabled: true,
handler: 'onRemoveClick',
reference: 'userRemoveButton'
+ }, {
+ text: strings.deviceTitle,
+ disabled: true,
+ handler: 'onDevicesClick',
+ reference: 'userDevicesButton'
}],
listeners: {
diff --git a/web/app/view/user/UserController.js b/web/app/view/user/UserController.js
index c4fa04ff3..041c70166 100644
--- a/web/app/view/user/UserController.js
+++ b/web/app/view/user/UserController.js
@@ -63,11 +63,26 @@ Ext.define('Traccar.view.user.UserController', {
}
});
},
+
+ onDevicesClick: function() {
+ // TODO show devices
+ /*Ext.create('Ext.window.Window', {
+ title: strings.settingsUsers,
+ width: styles.windowWidth,
+ height: styles.windowHeight,
+ layout: 'fit',
+ modal: true,
+ items: {
+ xtype: 'userView'
+ }
+ }).show();*/
+ },
onSelectionChange: function(selected) {
var disabled = selected.length > 0;
this.lookupReference('userEditButton').setDisabled(disabled);
this.lookupReference('userRemoveButton').setDisabled(disabled);
+ this.lookupReference('userDevicesButton').setDisabled(disabled);
}
});