Browse Source

UI-2765: use the endpoint settings of call recording account settings

4.3
Jean-Roch Maitre 9 years ago
parent
commit
c73f83603a
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      submodules/users/users.js

+ 3
- 3
submodules/users/users.js View File

@ -2230,9 +2230,9 @@ define(function(require) {
}
if (currentAccount.hasOwnProperty('call_recording') && currentAccount.call_recording.hasOwnProperty('account')) {
if (currentAccount.call_recording.account.hasOwnProperty(category)) {
if (currentAccount.call_recording.account[category].hasOwnProperty(direction) && currentAccount.call_recording.account[category][direction].hasOwnProperty('enabled')) {
formattedData.extra[category][direction].accountValue = currentAccount.call_recording.account[category][direction].enabled === true ? self.i18n.active().users.callRecording.toggleValues.on : self.i18n.active().users.callRecording.toggleValues.off;
if (currentAccount.call_recording.endpoint.hasOwnProperty(category)) {
if (currentAccount.call_recording.endpoint[category].hasOwnProperty(direction) && currentAccount.call_recording.endpoint[category][direction].hasOwnProperty('enabled')) {
formattedData.extra[category][direction].accountValue = currentAccount.call_recording.endpoint[category][direction].enabled === true ? self.i18n.active().users.callRecording.toggleValues.on : self.i18n.active().users.callRecording.toggleValues.off;
if (!found) {
formattedData.extra[category][direction].enabled = 'default';


Loading…
Cancel
Save