diff --git a/src/components/pages/NewCallForward/CscCallForwardGroup.vue b/src/components/pages/NewCallForward/CscCallForwardGroup.vue index 2b9e669b..c5494469 100644 --- a/src/components/pages/NewCallForward/CscCallForwardGroup.vue +++ b/src/components/pages/NewCallForward/CscCallForwardGroup.vue @@ -8,6 +8,12 @@ >
{{ groupTitle }} +
-
+
+
@@ -128,7 +134,8 @@ return { toggleGroup: true, isEnabled: true, - toggleNumberForm: true + toggleNumberForm: true, + toggleGroupInProgress: false }; }, async mounted(){ @@ -151,7 +158,7 @@ showAddDestBtn(){ const destinations = this.group.destinations; for(let dest of destinations){ - if(dest && dest.simple_destination && dest.simple_destination.length < 2){ + if(dest && (dest.simple_destination && dest.simple_destination.length < 2 || dest.destination.includes('voicebox.local'))){ return false; } } @@ -170,9 +177,17 @@ showNewDestNumber(){ this.$refs.addDestinationForm.add(); }, - showNumberFormPopover(){ - this.toggleNumberForm = false; - this.$refs.numberForm.open(); + async showNext(){ + switch(this.$refs.selectDestinationType.action){ + case 'destination': + this.toggleNumberForm = false; + this.$refs.numberForm.open(); + break; + case 'voicemail': + await this.$store.dispatch('newCallForward/addVoiceMail', this.group.id); + await this.$store.dispatch('newCallForward/loadForwardGroups'); + break; + } }, showDestTypeForm(){ this.toggleNumberForm = true; @@ -188,12 +203,14 @@ } return destination; }, - toggleGroupChange(){ - this.$store.dispatch('newCallForward/enableGroup', { + async toggleGroupChange(){ + this.toggleGroupInProgress = true; + await this.$store.dispatch('newCallForward/enableGroup', { groupName: this.group.name, id: this.group.id, enabled: this.isEnabled }); + this.toggleGroupInProgress = false; } } } @@ -221,10 +238,11 @@ text-overflow ellipsis color $primary cursor pointer + .csc-cf-group-popover-bottom + margin-left 30px .cf-destination-disabled color $cf-disabled-label - .csc-cf-timeout, - .csc-cf-destination + .csc-cf-destination-link color $cf-disabled-link .csc-cf-destination-actions .q-icon diff --git a/src/components/pages/NewCallForward/CscNewCallForward.vue b/src/components/pages/NewCallForward/CscNewCallForward.vue index d74cb7d0..6e7d0ba5 100644 --- a/src/components/pages/NewCallForward/CscNewCallForward.vue +++ b/src/components/pages/NewCallForward/CscNewCallForward.vue @@ -48,7 +48,7 @@ @@ -56,9 +56,9 @@ ref="destsetTypeForm" /> -
+ @@ -167,17 +167,13 @@ if(this.toggleDefaultNumber){ const timeoutFwdGroup = await this.$store.dispatch('newCallForward/getForwardGroupByName', 'timeout'); if(!timeoutFwdGroup){ - //await this.$store.dispatch('newCallForward/addForwardGroup', 'timeout'); await this.$store.dispatch('newCallForward/addTempDestination','timeout' ); - //await this.$store.dispatch('newCallForward/loadForwardGroups'); } } else{ const unconditionalFwdGroup = await this.$store.dispatch('newCallForward/getForwardGroupByName', 'unconditional'); if(!unconditionalFwdGroup){ - //await this.$store.dispatch('newCallForward/addForwardGroup', 'unconditional'); await this.$store.dispatch('newCallForward/addTempDestination','unconditional' ); - //await this.$store.dispatch('newCallForward/loadForwardGroups'); } } @@ -214,5 +210,8 @@ white-space nowrap overflow hidden text-overflow ellipsis + .cf-popover-bottom + min-width 150px + margin-left 5px diff --git a/src/components/pages/NewCallForward/CscNewCallForwardDestination.vue b/src/components/pages/NewCallForward/CscNewCallForwardDestination.vue index 069d1e5a..a68ad33b 100644 --- a/src/components/pages/NewCallForward/CscNewCallForwardDestination.vue +++ b/src/components/pages/NewCallForward/CscNewCallForwardDestination.vue @@ -1,13 +1,13 @@