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

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

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

Loading…
Cancel
Save