aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/user/UserController.js
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 /web/app/view/user/UserController.js
parentf3848ee9bfc3d6c8cbf30b2aaf013af1d236b570 (diff)
downloadtrackermap-server-804421836ad9c4c8ab34415a3f00c3e7ad0af524.tar.gz
trackermap-server-804421836ad9c4c8ab34415a3f00c3e7ad0af524.tar.bz2
trackermap-server-804421836ad9c4c8ab34415a3f00c3e7ad0af524.zip
Add user devices button
Diffstat (limited to 'web/app/view/user/UserController.js')
-rw-r--r--web/app/view/user/UserController.js15
1 files changed, 15 insertions, 0 deletions
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);
}
});