From e5b0fb35afd5332cb76103d2a6a752332ed22d21 Mon Sep 17 00:00:00 2001 From: Marco Capetta Date: Mon, 21 Aug 2023 16:32:42 +0200 Subject: [PATCH] MT#58074 Allow the selection of all the aliases as cli The subscriber administrator can now assign as CLI of each seat all the aliases configured in the customer and not only the ones assigned to the user itself. Change-Id: Id9a06c62bd2512cb19b34181b3de0d2c2fb6ff09 --- src/pages/CscPagePbxSeatDetails.vue | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/pages/CscPagePbxSeatDetails.vue b/src/pages/CscPagePbxSeatDetails.vue index 74c02368..ca43427c 100644 --- a/src/pages/CscPagePbxSeatDetails.vue +++ b/src/pages/CscPagePbxSeatDetails.vue @@ -509,14 +509,7 @@ export default { }, getCliNumbersOptions () { let cliOptions = [] - const clis = [...this.seatSelected.alias_numbers] - clis.forEach((cli) => { - cliOptions.push({ - label: cli.cc + cli.ac + cli.sn, - value: cli.cc + cli.ac + cli.sn - }) - }) - cliOptions = cliOptions.concat(this.getPrimaryNumberOptions()) + cliOptions = cliOptions.concat(this.getFullNumberOptions()) return cliOptions }, isLoading () { @@ -586,7 +579,7 @@ export default { 'resetSelectedSeat' ]), ...mapGetters('pbx', [ - 'getPrimaryNumberOptions', + 'getFullNumberOptions', 'numbers' ]), selectTab (tabName) {