diff --git a/src/components/CscAlertError.vue b/src/components/CscAlertError.vue new file mode 100644 index 00000000..88943ea4 --- /dev/null +++ b/src/components/CscAlertError.vue @@ -0,0 +1,46 @@ + + + + + diff --git a/src/components/CscAlertInfo.vue b/src/components/CscAlertInfo.vue new file mode 100644 index 00000000..9e9531b5 --- /dev/null +++ b/src/components/CscAlertInfo.vue @@ -0,0 +1,48 @@ + + + + + diff --git a/src/components/CscCall.vue b/src/components/CscCall.vue deleted file mode 100644 index 68e8f590..00000000 --- a/src/components/CscCall.vue +++ /dev/null @@ -1,770 +0,0 @@ - - - - - diff --git a/src/components/CscCallDialpad.vue b/src/components/CscCallDialpad.vue index f9136669..757badad 100644 --- a/src/components/CscCallDialpad.vue +++ b/src/components/CscCallDialpad.vue @@ -4,27 +4,28 @@ class="column" >
{{ key }} @@ -57,19 +57,20 @@ diff --git a/src/components/CscPage.vue b/src/components/CscPage.vue index abb8ecc5..b44828cc 100644 --- a/src/components/CscPage.vue +++ b/src/components/CscPage.vue @@ -101,6 +101,4 @@ margin-right: 10px; font-size: 24px !important; } - - diff --git a/src/components/call/CscCall.vue b/src/components/call/CscCall.vue new file mode 100644 index 00000000..e3230fc9 --- /dev/null +++ b/src/components/call/CscCall.vue @@ -0,0 +1,736 @@ + + + + + diff --git a/src/components/call/CscPhoneNumberInput.vue b/src/components/call/CscPhoneNumberInput.vue index c6801f0a..724e4223 100644 --- a/src/components/call/CscPhoneNumberInput.vue +++ b/src/components/call/CscPhoneNumberInput.vue @@ -1,67 +1,41 @@ - - diff --git a/src/components/layouts/Default.vue b/src/components/layouts/Default.vue index 03088688..980fe820 100644 --- a/src/components/layouts/Default.vue +++ b/src/components/layouts/Default.vue @@ -1,10 +1,10 @@ diff --git a/src/components/pages/Conversations/Conversations.vue b/src/components/pages/Conversations/Conversations.vue index f1d71ea0..08b2322c 100644 --- a/src/components/pages/Conversations/Conversations.vue +++ b/src/components/pages/Conversations/Conversations.vue @@ -53,7 +53,7 @@ :key="item._id" :item="item" :call-available="isCallAvailable" - @init-call="initCall" + @start-call="startCall" @download-fax="downloadFax" @download-voice-mail="downloadVoiceMail" @play-voice-mail="playVoiceMail" @@ -208,12 +208,9 @@ } this.$store.dispatch('conversations/nextPage', type); }, - initCall(call) { - this.layout.showRight(); - this.$store.dispatch('call/start', { - number: call.number, - localMedia: call.media - }); + startCall(number) { + this.$store.commit('call/numberInputChanged', number); + this.$router.push('home'); }, downloadFax(fax) { this.$store.dispatch('conversations/downloadFax', fax.id); diff --git a/src/components/pages/Conversations/CscCallItem.vue b/src/components/pages/Conversations/CscCallItem.vue index 0fa9c194..6e63c428 100644 --- a/src/components/pages/Conversations/CscCallItem.vue +++ b/src/components/pages/Conversations/CscCallItem.vue @@ -50,17 +50,32 @@ > - - + + + + + + + @@ -72,6 +87,7 @@ import _ from 'lodash' import CscCallOptionList from './CscCallOptionList' import { + QList, QItem, QItemSide, QItemMain, @@ -87,6 +103,7 @@ 'callAvailable' ], components: { + QList, QItem, QItemSide, QItemMain, @@ -170,12 +187,9 @@ } }, methods: { - initCall(media) { + startCall() { this.$refs.callPopover.close(); - this.$emit('init-call', { - media: media, - number: this.numberDialBack - }); + this.$emit('start-call', this.numberDialBack); } } } diff --git a/src/components/pages/Conversations/CscConversationItem.vue b/src/components/pages/Conversations/CscConversationItem.vue index acc38508..7f1fe057 100644 --- a/src/components/pages/Conversations/CscConversationItem.vue +++ b/src/components/pages/Conversations/CscConversationItem.vue @@ -3,22 +3,22 @@ v-if="item.type == 'call'" :call="item" :call-available="callAvailable" - @init-call="initCall" + @start-call="startCall" /> @@ -41,8 +41,8 @@ return {} }, methods: { - initCall(call) { - this.$emit('init-call', call); + startCall(number) { + this.$emit('start-call', number); }, downloadFax(fax) { this.$emit('download-fax', fax); diff --git a/src/components/pages/Conversations/CscFaxItem.vue b/src/components/pages/Conversations/CscFaxItem.vue index c47eaf06..5129c021 100644 --- a/src/components/pages/Conversations/CscFaxItem.vue +++ b/src/components/pages/Conversations/CscFaxItem.vue @@ -45,25 +45,43 @@ > - - - - + + + + + + + + + + + @@ -74,6 +92,7 @@