diff --git a/submodules/devices/devices.js b/submodules/devices/devices.js index 281877b..34bc4f6 100644 --- a/submodules/devices/devices.js +++ b/submodules/devices/devices.js @@ -270,7 +270,7 @@ define(function(require){ type = data.device_type, popupTitle = mode === 'edit' ? monster.template(self, '!' + self.i18n.active().devices[type].editTitle, { name: data.name }) : self.i18n.active().devices[type].addTitle, templateDevice = $(monster.template(self, 'devices-'+type, $.extend(true, {}, data, { - isE911Enabled: monster.util.isNumberFeatureEnabled('e911') + showEmergencyCnam: monster.util.isNumberFeatureEnabled('cnam') && monster.util.isNumberFeatureEnabled('e911') }))), deviceForm = templateDevice.find('#form_device'); diff --git a/views/devices-ata.html b/views/devices-ata.html index 4b8fab6..57e68c5 100644 --- a/views/devices-ata.html +++ b/views/devices-ata.html @@ -23,7 +23,7 @@ @@ -115,7 +115,7 @@ - {{#if isE911Enabled}} + {{#if showEmergencyCnam}}
{{ i18n.devices.popupSettings.callerId.sectionTitle }} diff --git a/views/devices-fax.html b/views/devices-fax.html index 6639ed4..bfbc15b 100644 --- a/views/devices-fax.html +++ b/views/devices-fax.html @@ -23,7 +23,7 @@ @@ -135,7 +135,7 @@
- {{#if isE911Enabled}} + {{#if showEmergencyCnam}}
{{ i18n.devices.popupSettings.callerId.sectionTitle }} diff --git a/views/devices-mobile.html b/views/devices-mobile.html index 8715c62..deb78c5 100644 --- a/views/devices-mobile.html +++ b/views/devices-mobile.html @@ -24,7 +24,7 @@
  • {{ i18n.devices.popupSettings.audio.menuTitle }}
  • {{ i18n.devices.popupSettings.video.menuTitle }}
  • {{ i18n.devices.popupSettings.restrictions.menuTitle }}
  • - {{#if isE911Enabled}} + {{#if showEmergencyCnam}}
  • {{ i18n.devices.popupSettings.callerId.menuTitle }}
  • {{/if}}
  • {{ i18n.devices.popupSettings.miscellaneous.menuTitle }}
  • @@ -137,7 +137,7 @@
    - {{#if isE911Enabled}} + {{#if showEmergencyCnam}}
    {{ i18n.devices.popupSettings.callerId.sectionTitle }} diff --git a/views/devices-sip_device.html b/views/devices-sip_device.html index 9c6529b..f39d78e 100644 --- a/views/devices-sip_device.html +++ b/views/devices-sip_device.html @@ -32,7 +32,7 @@
  • {{ i18n.devices.popupSettings.audio.menuTitle }}
  • {{ i18n.devices.popupSettings.video.menuTitle }}
  • {{ i18n.devices.popupSettings.restrictions.menuTitle }}
  • - {{#if isE911Enabled}} + {{#if showEmergencyCnam}}
  • {{ i18n.devices.popupSettings.callerId.menuTitle }}
  • {{/if}}
  • {{ i18n.devices.popupSettings.miscellaneous.menuTitle }}
  • @@ -174,7 +174,7 @@
    - {{#if isE911Enabled}} + {{#if showEmergencyCnam}}
    {{ i18n.devices.popupSettings.callerId.sectionTitle }} diff --git a/views/devices-softphone.html b/views/devices-softphone.html index 09c7564..705dbec 100644 --- a/views/devices-softphone.html +++ b/views/devices-softphone.html @@ -24,7 +24,7 @@
  • {{ i18n.devices.popupSettings.audio.menuTitle }}
  • {{ i18n.devices.popupSettings.video.menuTitle }}
  • {{ i18n.devices.popupSettings.restrictions.menuTitle }}
  • - {{#if isE911Enabled}} + {{#if showEmergencyCnam}}
  • {{ i18n.devices.popupSettings.callerId.menuTitle }}
  • {{/if}}
  • {{ i18n.devices.popupSettings.miscellaneous.menuTitle }}
  • @@ -131,7 +131,7 @@
    - {{#if isE911Enabled}} + {{#if showEmergencyCnam}}
    {{ i18n.devices.popupSettings.callerId.sectionTitle }}