From 8a0527d54ac8551b4e32dc7643000e8323ae972a Mon Sep 17 00:00:00 2001 From: Carlo Venusino Date: Wed, 22 Jul 2020 15:41:21 +0200 Subject: [PATCH] TT#82507 CF: As a Customer, I want to add condition "... and weekdays are" to forwarding groups MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AC: √ Can choose "weekdays are ..." from condition menu in each forwarding group (online, offline, busy) √ Can click "weekdays are ..." to choose the weekdays initially √ Can see a date weekday widget according to the screens √ Can choose weekdays √ Can save the chosen weekdays √ Can cancel the process √ Can see the changed title "... and weekdays are Monday, Friday" after saving √ Can click the changed title to change weekdays again √ Can remove the condition Extra: √ Fix conditions menu UX bugs √ Fix conditions popover position Change-Id: I8a5a465765b5ce204fd47c1880164f91c03b4622 --- src/api/call-forward.js | 1 - .../NewCallForward/CscCallForwardGroup.vue | 492 ++++++++++-------- .../CscNewCallForwardAddDestinationForm.vue | 2 + .../CscNewCallForwardAddSourcesetForm.vue | 3 + .../CscNewCallForwardAddWeekdayForm.vue | 261 ++++++++++ .../CscNewCallForwardConditionTypeSelect.vue | 230 +------- .../CscNewCallForwardDateRange.vue | 400 ++++++++++++++ .../CscNewCallForwardDestination.vue | 1 - .../CscNewCallForwardEditSources.vue | 3 +- src/locales/en.json | 9 + src/store/new-call-forward.js | 17 +- 11 files changed, 969 insertions(+), 450 deletions(-) create mode 100644 src/components/pages/NewCallForward/CscNewCallForwardAddWeekdayForm.vue create mode 100644 src/components/pages/NewCallForward/CscNewCallForwardDateRange.vue diff --git a/src/api/call-forward.js b/src/api/call-forward.js index 5af4dcc0..44f04e73 100644 --- a/src/api/call-forward.js +++ b/src/api/call-forward.js @@ -305,7 +305,6 @@ export function updateDestinationsetName(options) { } export function addDestinationToDestinationset(options) { - return patchReplaceFull({ path: 'api/cfdestinationsets/' + options.id, fieldPath: 'destinations', diff --git a/src/components/pages/NewCallForward/CscCallForwardGroup.vue b/src/components/pages/NewCallForward/CscCallForwardGroup.vue index 9185aa7c..cd2ff97f 100644 --- a/src/components/pages/NewCallForward/CscCallForwardGroup.vue +++ b/src/components/pages/NewCallForward/CscCallForwardGroup.vue @@ -1,4 +1,5 @@ -