@@ -213,9 +212,7 @@
import {
mapGetters,
} from 'vuex'
- import {
- showGlobalWarning
- } from '../../../helpers/ui'
+
import {
QSpinnerDots,
QToggle,
@@ -251,7 +248,6 @@
QItemSide,
CscConfirmDialog,
CscObjectSpinner,
- showGlobalWarning,
CscNewCallForwardDestination,
CscNewCallForwardAddDestinationForm,
CscNewCallForwardEditSources,
@@ -380,8 +376,14 @@
showFirstDestMenu(){
const firstDestinationCmp = this.$refs.destination[0];
firstDestinationCmp.firstDestinationInCreation = true;
+ if(this.group.name.includes('timeout') || this.group.name.includes('unconditional')){
+ firstDestinationCmp.movePopoverTimeoutToTop();
+ }
+ else{
+ firstDestinationCmp.movePopoverToTop();
+ }
+
firstDestinationCmp.$refs.destTypeForm.open();
- showGlobalWarning(`${this.$t('pages.newCallForward.mandatoryDestinationLabel')}`, 5000)
},
async showConditionForm(){
this.toggleConditionFromForm = false;
@@ -441,6 +443,10 @@
this.sourceSet = sourceSet;
this.sources = this.sourceSet.sources;
}
+ else{
+ this.sourceSet = null;
+ this.sources = [];
+ }
}
},
showConfirmDialog(){
@@ -466,6 +472,9 @@
@import '../../../themes/app.common.styl'
.csc-cf-group
width 100%
+ .csc-cf-group-title-bold
+ text-align right
+ font-weight bold
.csc-cf-group-cont
position relative
.csc-cf-destination-label
diff --git a/src/components/pages/NewCallForward/CscNewCallForward.vue b/src/components/pages/NewCallForward/CscNewCallForward.vue
index 83ad417e..d092c5a1 100644
--- a/src/components/pages/NewCallForward/CscNewCallForward.vue
+++ b/src/components/pages/NewCallForward/CscNewCallForward.vue
@@ -7,8 +7,15 @@
>
- {{ $t('pages.newCallForward.titles.mainTitle') }}
+ {{ $t('pages.newCallForward.titles.mainTitle', {number: this.subscriberDisplayName}) }}
+
+ {{$t('pages.newCallForward.primarNumberEnabled')}} {{ subscriberDisplayName }}
{
+ return $group.id.toString().indexOf('temp-') > -1;
+ });
+
+ if(tempGroups.length > 0){
+ showGlobalWarning(`${this.$t('pages.newCallForward.addDestinationAlert')}`, 5000);
+ }
+ else{
+ switch(selectedDestType){
+ case "unconditional":{
+ if(this.toggleDefaultNumber){
+ const tempTimeoutFwdGroup = await this.$store.dispatch('newCallForward/getForwardGroupById', 'temp-csc-timeout');
+ if(!tempTimeoutFwdGroup){
+ await this.$store.dispatch('newCallForward/addTempGroup','timeout' );
+ }
}
- }
- else{
- const tempUnconditionalFwdGroup = await this.$store.dispatch('newCallForward/getForwardGroupById', 'temp-csc-unconditional');
- if(!tempUnconditionalFwdGroup){
- await this.$store.dispatch('newCallForward/addTempGroup','unconditional' );
+ else{
+ const tempUnconditionalFwdGroup = await this.$store.dispatch('newCallForward/getForwardGroupById', 'temp-csc-unconditional');
+ if(!tempUnconditionalFwdGroup){
+ await this.$store.dispatch('newCallForward/addTempGroup','unconditional' );
+ }
}
}
- }
- break;
- case "unconditional-from":{
- if(this.toggleDefaultNumber){
- const tempTimeoutFwdGroup = await this.$store.dispatch('newCallForward/getForwardGroupById', 'temp-csc-timeout-from');
- if(!tempTimeoutFwdGroup){
- await this.$store.dispatch('newCallForward/addTempGroup','timeoutFrom' );
+ break;
+ case "unconditional-from":{
+ if(this.toggleDefaultNumber){
+ const tempTimeoutFwdGroup = await this.$store.dispatch('newCallForward/getForwardGroupById', 'temp-csc-timeout-from');
+ if(!tempTimeoutFwdGroup){
+ await this.$store.dispatch('newCallForward/addTempGroup','timeoutFrom' );
+ }
}
- }
- else{
- const tempUnconditionalFwdGroup = await this.$store.dispatch('newCallForward/getForwardGroupById', 'temp-csc-unconditional-from');
- if(!tempUnconditionalFwdGroup){
- await this.$store.dispatch('newCallForward/addTempGroup','unconditionalFrom' );
+ else{
+ const tempUnconditionalFwdGroup = await this.$store.dispatch('newCallForward/getForwardGroupById', 'temp-csc-unconditional-from');
+ if(!tempUnconditionalFwdGroup){
+ await this.$store.dispatch('newCallForward/addTempGroup','unconditionalFrom' );
+ }
}
}
+ break;
+ case "offline":{
+ await this.$store.dispatch('newCallForward/addTempGroup','offline' );
+ }
+ break;
+ case "busy":{
+ await this.$store.dispatch('newCallForward/addTempGroup','busy' );
+ }
+ break;
}
- break;
- case "offline":{
- await this.$store.dispatch('newCallForward/addTempGroup','offline' );
- }
- break;
- case "busy":{
- await this.$store.dispatch('newCallForward/addTempGroup','busy' );
- }
- break;
}
-
this.groupInCreation = false;
},
showForm(){
@@ -224,7 +246,6 @@
float right
.csc-cf-group-title
text-align right
- font-weight bold
.csc-cf-destinations-cont
margin-top 25px
.csc-cf-field-toggle
diff --git a/src/components/pages/NewCallForward/CscNewCallForwardAddDestinationForm.vue b/src/components/pages/NewCallForward/CscNewCallForwardAddDestinationForm.vue
index b840bb92..8d08870a 100644
--- a/src/components/pages/NewCallForward/CscNewCallForwardAddDestinationForm.vue
+++ b/src/components/pages/NewCallForward/CscNewCallForwardAddDestinationForm.vue
@@ -11,7 +11,7 @@
@error="error"
/>