diff --git a/classic/src/view/pages/contacts/ContactsController.js b/classic/src/view/pages/contacts/ContactsController.js index bce64c8f..fd72a652 100644 --- a/classic/src/view/pages/contacts/ContactsController.js +++ b/classic/src/view/pages/contacts/ContactsController.js @@ -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(); diff --git a/resources/data/contacts.json b/resources/data/contacts.json index 73939e0c..300a2f72 100644 --- a/resources/data/contacts.json +++ b/resources/data/contacts.json @@ -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",