Skip to content
This repository has been archived by the owner on Dec 23, 2019. It is now read-only.

Commit

Permalink
fix(telephony.alias.configuration): fix call forwarding option
Browse files Browse the repository at this point in the history
ref: MANAGER-2079
  • Loading branch information
Jérémy DE CESARE authored and antleblanc committed Mar 4, 2019
1 parent b170852 commit 4546b51
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ angular.module('managerApp').controller('TelecomTelephonyAliasConfigurationLines
this.copyContactCenterSolution = angular.copy(ccs);

[this.queue] = queues;
this.copyQueue = angular.copy(this.queue);
this.enums = enums;

this.selectedCaller = _.find(
Expand Down Expand Up @@ -96,7 +97,9 @@ angular.module('managerApp').controller('TelecomTelephonyAliasConfigurationLines
}

hasChanged() {
return this.canUpdateContactCenterSolution() || this.canUpdateAgentsList();
return this.canUpdateContactCenterSolution()
|| this.canUpdateAgentsList()
|| this.canUpdateQueue();
}

canUpdateContactCenterSolution() {
Expand All @@ -107,6 +110,10 @@ angular.module('managerApp').controller('TelecomTelephonyAliasConfigurationLines
return !_.isEqual(this.agents, this.copyAgents);
}

canUpdateQueue() {
return !_.isEqual(this.queue, this.copyQueue);
}

deleteLineOpenModal(line) {
this.$uibModal.open({
templateUrl: 'app/telecom/telephony/alias/configuration/feature/contactCenterSolution/lines/delete/telecom-telephony-alias-configuration-lines-delete.html',
Expand Down Expand Up @@ -198,8 +205,16 @@ angular.module('managerApp').controller('TelecomTelephonyAliasConfigurationLines
)
: angular.noop(),
agentsList: this.canUpdateAgentsList() ? this.updateAgentsList() : angular.noop(),
queue: this.canUpdateQueue()
? this.tucVoipServiceAlias.updateContactCenterSolutionNumberQueue(
this.serviceInfos,
this.queue,
) : angular.noop(),
}).then(() => {
this.OvhApiTelephony.EasyHunting().Hunting().v6().resetCache();
this.OvhApiTelephony.EasyHunting().Hunting().Queue()
.v6()
.resetCache();
this.OvhApiTelephony.EasyHunting().Hunting().Queue().Agent()
.v6()
.resetAllCache();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ <h2 data-translate="telephony_alias_config_contactCenterSolution_lines_title"></
</oui-field>
<oui-field data-size="l">
<oui-checkbox class="d-inline-block"
name="statusIvrEnabled"
data-model="$ctrl.contactCenterSolution.statusIvrEnabled">
name="followCallForwards"
data-model="$ctrl.queue.followCallForwards">
<span data-translate="telephony_alias_config_contactCenterSolution_lines_apply_forward_to_lines"></span>
</oui-checkbox>
<button type="button"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@ovh-ux/ng-ovh-http": "^4.0.1-beta.0",
"@ovh-ux/ng-ovh-sso-auth": "^4.0.0",
"@ovh-ux/ng-ovh-sso-auth-modal-plugin": "^3.0.0",
"@ovh-ux/ng-ovh-telecom-universe-components": "^2.0.2",
"@ovh-ux/ng-ovh-telecom-universe-components": "^2.0.3",
"@ovh-ux/ng-pagination-front": "^8.0.0-alpha.0",
"@ovh-ux/ng-tail-logs": "^2.0.0-beta.1",
"@ovh-ux/ng-translate-async-loader": "^2.0.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1041,10 +1041,10 @@
resolved "https://registry.yarnpkg.com/@ovh-ux/ng-ovh-sso-auth/-/ng-ovh-sso-auth-4.0.0.tgz#f6c1027f5ef827d464ff3b0e702b1692ee279703"
integrity sha512-exPPBbg2WTXH4/LHu3dsqfHq073+NhBzB69WB97Dd75FKust3h/SUjyQyuFOn7h4Z0OI4/8db+6qpwjEIAAz6Q==

"@ovh-ux/ng-ovh-telecom-universe-components@^2.0.2":
version "2.0.2"
resolved "https://registry.yarnpkg.com/@ovh-ux/ng-ovh-telecom-universe-components/-/ng-ovh-telecom-universe-components-2.0.2.tgz#cdf10f1b52202ef9aaad3c680fabe2f29a6fd164"
integrity sha512-JNVshcYpYQRtGPLx2TQsHmmoez7ukSzs3QUVk4ItVpDVsJZAQHKaR5mTyE6FwMI3MuVS+86WdPlqHTHcgZfMZQ==
"@ovh-ux/ng-ovh-telecom-universe-components@^2.0.3":
version "2.0.3"
resolved "https://registry.yarnpkg.com/@ovh-ux/ng-ovh-telecom-universe-components/-/ng-ovh-telecom-universe-components-2.0.3.tgz#1adc34d7c67b942de7fc1ddbbb50461139b6e999"
integrity sha512-rwhdTyyGjTkT3bwxGEqknKYX/sxW4cF+kpRGlR3US0kY1/eB9qEeAwktmaejbl/dAH8MC4zy5qy2G/ltqeNv4A==
dependencies:
bootstrap "^3.3.7"
ovh-ui-kit "^2.22.0"
Expand Down

0 comments on commit 4546b51

Please sign in to comment.