Browse Source

MSPB-4: Allow devices to be restarted from user page (#148)

* Pass isRegistered to device popup on users page

* Address PR comments
4.3
John 7 years ago
committed by Joris Tirado
parent
commit
6173a648d7
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      submodules/users/users.js

+ 4
- 2
submodules/users/users.js View File

@ -1240,11 +1240,13 @@ define(function(require) {
template.on('click', '.detail-devices .edit-device-link', function() {
var row = $(this).parents('.item-row'),
id = row.data('id'),
userId = $(this).parents('.grid-row').data('id');
userId = $(this).parents('.grid-row').data('id'),
userData = _.find(data.users, { id: userId }),
deviceData = _.find(userData.extra.devices, { id: id });
monster.pub('voip.devices.editDevice', {
allowAssign: false,
data: { id: id },
data: { id: id, isRegistered: deviceData.registered },
callbackSave: function(device) {
row.find('.edit-device').html(device.name);
},


Loading…
Cancel
Save