diff --git a/i18n/en-US.json b/i18n/en-US.json index 6dc3a6c..ba0afb3 100644 --- a/i18n/en-US.json +++ b/i18n/en-US.json @@ -313,7 +313,7 @@ "new": "New Landline", "number": "Number", "numberPlaceholder": "+14152231121", - "requireKeypress": "Require Key Press", + "requireKeypress": "Allow use of landline's voicemail", "keepCallerId": "Keep Original Caller-ID", "hideContactList": "Hide from Contact List" }, @@ -324,7 +324,7 @@ "new": "New Cell Phone", "number": "Number", "numberPlaceholder": "+14152231121", - "requireKeypress": "Allow use of cellphone voicemail", + "requireKeypress": "Allow use of cellphone's voicemail", "keepCallerId": "Keep Original Caller-ID", "hideContactList": "Hide from Contact List" }, @@ -341,7 +341,7 @@ "deviceName": "Device Name", "editTitle": "Editing Smartphone: {{name}}", "new": "New Smartphone", - "requireKeypress": "Allow use of cellphone voicemail", + "requireKeypress": "Allow use of smartphone's voicemail", "keepCallerId": "Keep Original Caller-ID", "hideContactList": "Hide from Contact List" }, diff --git a/submodules/devices/devices.js b/submodules/devices/devices.js index df51332..ea82e92 100644 --- a/submodules/devices/devices.js +++ b/submodules/devices/devices.js @@ -550,6 +550,10 @@ define(function(require){ if (originalData.device_type === 'smartphone') { formData.call_forward.failover = true; } + + if(formData.hasOwnProperty('extra') && formData.extra.allowVMCellphone) { + formData.call_forward.require_keypress = !formData.extra.allowVMCellphone; + } } if(hasCodecs) { @@ -803,6 +807,10 @@ define(function(require){ formattedData.extra.isRegistered = dataList.isRegistered; + if(formattedData.hasOwnProperty('call_forward') && formattedData.call_forward.hasOwnProperty('require_keypress')) { + formattedData.extra.allowVMCellphone = !formattedData.call_forward.require_keypress; + } + return formattedData; }, diff --git a/views/devices-cellphone.html b/views/devices-cellphone.html index f370de5..20ae0f3 100644 --- a/views/devices-cellphone.html +++ b/views/devices-cellphone.html @@ -49,7 +49,7 @@