diff --git a/src/components/pages/NewCallForward/CscCallForwardGroup.vue b/src/components/pages/NewCallForward/CscCallForwardGroup.vue
index 523a9c32..b071a6d4 100644
--- a/src/components/pages/NewCallForward/CscCallForwardGroup.vue
+++ b/src/components/pages/NewCallForward/CscCallForwardGroup.vue
@@ -12,6 +12,29 @@
{{groupTitle}}
+
+
+ {{ $t('pages.newCallForward.conditionBtnLabelPrefix') }}
+
+ {{ $t('pages.newCallForward.conditionBtnLabel') }}
+
+
+
+
+
+
@@ -105,6 +128,7 @@
>
diff --git a/src/helpers/ui.js b/src/helpers/ui.js
index 8a94a425..1e0c9238 100644
--- a/src/helpers/ui.js
+++ b/src/helpers/ui.js
@@ -22,7 +22,7 @@ export function showGlobalError(message) {
setTimeout(()=>{ alert.dismiss(); }, 2000);
}
-export function showGlobalWarning(message) {
+export function showGlobalWarning(message, timeout) {
const alert = Alert.create({
html: message,
position: 'top-center',
@@ -30,7 +30,7 @@ export function showGlobalWarning(message) {
leave: 'fadeOut',
color: 'warning'
});
- setTimeout(()=>{ alert.dismiss(); }, 2000);
+ setTimeout(()=>{ alert.dismiss(); }, timeout || 2000);
}
export function showPermanentGlobalWarning(message) {
diff --git a/src/locales/en.json b/src/locales/en.json
index 1d775ce2..c5808b97 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -240,7 +240,8 @@
"fromLabelShort": " call from ",
"offlineLabel": "If offline",
"busyLabel": "If busy",
- "sourcesetName": "List name"
+ "sourcesetName": "List name",
+ "mandatoryDestinationLabel": "Please add a destination to the group before adding conditions"
},
"callForward": {
"titles": {
diff --git a/src/store/new-call-forward.js b/src/store/new-call-forward.js
index 5ddd50a6..06cc758f 100644
--- a/src/store/new-call-forward.js
+++ b/src/store/new-call-forward.js
@@ -48,12 +48,16 @@ export default {
sourceSets: [],
forwardGroups: [],
groupsLoaders: [],
- selectedDestType: null
+ selectedDestType: null,
+ firstDestinationInCreation: null
},
getters: {
getGroupsLoaders(state){
return state.groupsLoaders;
},
+ getFirstDestinationInCreation(state){
+ return state.firstDestinationInCreation
+ },
primaryNumber(state, getters, rootState, rootGetters) {
const subscriber = rootGetters['user/getSubscriber'];
if(subscriber !== null) {
@@ -177,6 +181,9 @@ export default {
},
removeGroupLoader(state, groupId){
state.groupsLoaders = state.groupsLoaders.filter($groupId => $groupId !== groupId);
+ },
+ setFirstDestinationInCreation(state, groupId){
+ state.firstDestinationInCreation = groupId;
}
},
actions: {
@@ -618,5 +625,8 @@ export default {
async removeSourceFromSourceset(context, data){
await addSourceToSourceset(data)
},
+ setFirstDestinationInCreation(context, groupId){
+ context.commit('setFirstDestinationInCreation', groupId);
+ }
}
};