TT#17151 Csc fix broken calls personal addressbook

Fix issue with not being able to make calls to contacts in personal
addressbook, that appear online in the other lists. For offline
contacts in personal addressbook, no call should be possible.

Change-Id: I67f3668a1a52f3daf4977a35dcd0106091d9a411
changes/72/13672/1
Robert Axelsen 8 years ago
parent 331d8a4405
commit f3133c3b9f

@ -267,13 +267,15 @@ Ext.define('NgcpCsc.view.pages.contacts.ContactsController', {
},
startCall: function(grid, rowIndex, colIndex, item, e, record) {
if (record.get('online'))
if (record.get('online')) {
this.fireEvent('initrtc', record, 'startCall');
}
},
startVideoCall: function(grid, rowIndex, colIndex, item, e, record) {
if (record.get('online'))
if (record.get('online')) {
this.fireEvent('initrtc', record, 'startVideoCall', true);
}
},
editContactField: function(tree, rowIndex, colIndex, item, e, record) {
@ -351,7 +353,6 @@ Ext.define('NgcpCsc.view.pages.contacts.ContactsController', {
},
cancelEdit: function(rec) {
console.log('cancelEdit fired');
var store = this.getView().getStore();
var saveBtn = this.getView().down('[name=commitContactChangesBtn]');
var array = rec ? rec.childNodes : store.getRange();

@ -65,6 +65,7 @@
"expanded": true,
"children": [{
"uid": 162,
"online": true,
"name": "Allen Morris",
"thumbnail": "resources/images/user-profile/11.png",
"isAddressBookContact": true,
@ -112,6 +113,7 @@
}, {
"uid": 5,
"name": "Suzette Powell",
"online": false,
"thumbnail": "resources/images/user-profile/7.png",
"isAddressBookContact": true,
"iconCls": "no-icon",
@ -158,6 +160,7 @@
}, {
"uid": 840,
"name": "Jil Sanchez",
"online": true,
"thumbnail": "resources/images/user-profile/9.png",
"isAddressBookContact": true,
"iconCls": "no-icon",

Loading…
Cancel
Save