aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/UsersController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/UsersController.js')
-rw-r--r--web/app/view/UsersController.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/app/view/UsersController.js b/web/app/view/UsersController.js
index cfcf17fe1..30eb8b1a5 100644
--- a/web/app/view/UsersController.js
+++ b/web/app/view/UsersController.js
@@ -65,10 +65,12 @@ Ext.define('Traccar.view.UsersController', {
},
onDevicesClick: function () {
+ var user = this.getView().getSelectionModel().getSelection()[0];
Ext.create('Traccar.view.BaseWindow', {
title: Strings.deviceTitle,
items: {
- xtype: 'userDevicesView'
+ xtype: 'userDevicesView',
+ user: user
}
}).show();
},