TT#79755 CF: Implement menu item "If offline"

Change-Id: If75abf8ea77d5cd6b88f46f57da50744867b6ccf
changes/26/39526/1
Carlo Venusino 5 years ago
parent e79b9c65a3
commit ff73ab66ea

@ -130,7 +130,8 @@
return { return {
groupInCreation: false, groupInCreation: false,
groupsLoading: false, groupsLoading: false,
toggleDefaultNumber: true toggleDefaultNumber: true,
selectedDestType: null
}; };
}, },
async mounted(){ async mounted(){
@ -163,6 +164,7 @@
}, },
methods: { methods: {
async addForwardGroup(){ async addForwardGroup(){
// TODO check this.selectedDestType and toggle proper logic
this.groupInCreation = true; this.groupInCreation = true;
if(this.toggleDefaultNumber){ if(this.toggleDefaultNumber){
const timeoutFwdGroup = await this.$store.dispatch('newCallForward/getForwardGroupByName', 'timeout'); const timeoutFwdGroup = await this.$store.dispatch('newCallForward/getForwardGroupByName', 'timeout');

@ -4,10 +4,16 @@
> >
<div <div
class="csc-cf-dest-type" class="csc-cf-dest-type"
@click="addDestination()" @click="addDestinationsetUnconditional()"
> >
{{ $t('pages.newCallForward.uncoditionalLabel') }} {{ $t('pages.newCallForward.uncoditionalLabel') }}
</div> </div>
<div
class="csc-cf-dest-type"
@click="addDestinationsetOffline()"
>
{{ $t('pages.newCallForward.offlinelLabel') }}
</div>
</div> </div>
</template> </template>
@ -26,7 +32,12 @@
} }
}, },
methods: { methods: {
addDestination(){ addDestinationsetUnconditional(){
this.$parent.selectedDestType = "unconditional";
this.$parent.close()
},
addDestinationsetOffline(){
this.$parent.selectedDestType = "offline";
this.$parent.close() this.$parent.close()
}, },
cancel() { cancel() {

@ -225,7 +225,8 @@
"cancelDialogTitle": "Delete from {groupName} forwarding", "cancelDialogTitle": "Delete from {groupName} forwarding",
"cancelDialogText": "You are about to delete {destination} from {groupName} call forwarding", "cancelDialogText": "You are about to delete {destination} from {groupName} call forwarding",
"timeoutGroupTitle" : "", "timeoutGroupTitle" : "",
"uncoditionalLabel": "Unconditional" "uncoditionalLabel": "Unconditional",
"offlinelLabel": "If offline"
}, },
"callForward": { "callForward": {
"titles": { "titles": {

Loading…
Cancel
Save