|
|
@ -9,6 +9,13 @@
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{{ $t('pages.newCallForward.unconditionalLabel') }}
|
|
|
|
{{ $t('pages.newCallForward.unconditionalLabel') }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
|
|
|
class="csc-cf-dest-type"
|
|
|
|
|
|
|
|
v-if="!unconditionalGroupExists && !timeoutFromGroupExists"
|
|
|
|
|
|
|
|
@click="addDestinationsetUnconditionalFrom()"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ $t('pages.newCallForward.unconditionalFromLabel') }}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
class="csc-cf-dest-type"
|
|
|
|
class="csc-cf-dest-type"
|
|
|
|
v-if="!offlineGroupExists"
|
|
|
|
v-if="!offlineGroupExists"
|
|
|
@ -46,7 +53,9 @@
|
|
|
|
computed: {
|
|
|
|
computed: {
|
|
|
|
...mapGetters('newCallForward', [
|
|
|
|
...mapGetters('newCallForward', [
|
|
|
|
'timeoutGroupExists',
|
|
|
|
'timeoutGroupExists',
|
|
|
|
|
|
|
|
'timeoutFromGroupExists',
|
|
|
|
'unconditionalGroupExists',
|
|
|
|
'unconditionalGroupExists',
|
|
|
|
|
|
|
|
'unconditionalFromGroupExists',
|
|
|
|
'offlineGroupExists',
|
|
|
|
'offlineGroupExists',
|
|
|
|
'busyGroupExists'
|
|
|
|
'busyGroupExists'
|
|
|
|
])
|
|
|
|
])
|
|
|
@ -56,6 +65,10 @@
|
|
|
|
await this.$store.dispatch('newCallForward/setSelectedDestType', 'unconditional');
|
|
|
|
await this.$store.dispatch('newCallForward/setSelectedDestType', 'unconditional');
|
|
|
|
this.$parent.close()
|
|
|
|
this.$parent.close()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
async addDestinationsetUnconditionalFrom(){
|
|
|
|
|
|
|
|
await this.$store.dispatch('newCallForward/setSelectedDestType', 'unconditional-from');
|
|
|
|
|
|
|
|
this.$parent.close()
|
|
|
|
|
|
|
|
},
|
|
|
|
async addDestinationsetOffline(){
|
|
|
|
async addDestinationsetOffline(){
|
|
|
|
await this.$store.dispatch('newCallForward/setSelectedDestType', 'offline');
|
|
|
|
await this.$store.dispatch('newCallForward/setSelectedDestType', 'offline');
|
|
|
|
this.$parent.close()
|
|
|
|
this.$parent.close()
|
|
|
@ -64,22 +77,7 @@
|
|
|
|
await this.$store.dispatch('newCallForward/setSelectedDestType', 'busy');
|
|
|
|
await this.$store.dispatch('newCallForward/setSelectedDestType', 'busy');
|
|
|
|
this.$parent.close()
|
|
|
|
this.$parent.close()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// async checkTimeoutExisting(){
|
|
|
|
|
|
|
|
// const group = await this.$store.dispatch('newCallForward/getForwardGroupByName', 'timeout');
|
|
|
|
|
|
|
|
// this.timeoutExisting = !!group;
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// async checkUnconditionalExisting(){
|
|
|
|
|
|
|
|
// const group = await this.$store.dispatch('newCallForward/getForwardGroupByName', 'unconditional');
|
|
|
|
|
|
|
|
// this.unconditionalExisting = !!group;
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// async checkOfflineExisting(){
|
|
|
|
|
|
|
|
// const group = await this.$store.dispatch('newCallForward/getForwardGroupByName', 'offline');
|
|
|
|
|
|
|
|
// this.offlineExisting = !!group;
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// async checkBusyExisting(){
|
|
|
|
|
|
|
|
// const group = await this.$store.dispatch('newCallForward/getForwardGroupByName', 'busy');
|
|
|
|
|
|
|
|
// this.busyExisting = !!group;
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
cancel() {
|
|
|
|
cancel() {
|
|
|
|
this.enabled = false;
|
|
|
|
this.enabled = false;
|
|
|
|
},
|
|
|
|
},
|
|
|
|