diff --git a/frontend/src/components/AppSidebar.vue b/frontend/src/components/AppSidebar.vue
index d1be69f7..5f1698fe 100644
--- a/frontend/src/components/AppSidebar.vue
+++ b/frontend/src/components/AppSidebar.vue
@@ -37,6 +37,7 @@ import DealsIcon from '@/components/Icons/DealsIcon.vue'
import ContactsIcon from '@/components/Icons/ContactsIcon.vue'
import NoteIcon from '@/components/Icons/NoteIcon.vue'
import DashboardIcon from '@/components/Icons/DashboardIcon.vue'
+import PhoneIcon from '@/components/Icons/PhoneIcon.vue'
import NavLinks from '@/components/NavLinks.vue'
const navigations = [
@@ -60,6 +61,11 @@ const navigations = [
icon: NoteIcon,
route: { name: 'Notes' },
},
+ {
+ name: 'Call Logs',
+ icon: PhoneIcon,
+ route: { name: 'Call Logs' },
+ },
{
name: 'Dashboard',
icon: DashboardIcon,
diff --git a/frontend/src/components/CallUI.vue b/frontend/src/components/CallUI.vue
index 34d20ac9..53aeb564 100644
--- a/frontend/src/components/CallUI.vue
+++ b/frontend/src/components/CallUI.vue
@@ -250,18 +250,18 @@ function addDeviceListeners() {
device.on('disconnect', (conn) => {
log.value = 'Call ended disconnect.'
- update_call_log(conn)
+ // update_call_log(conn)
})
}
-function update_call_log(conn, status = 'Completed') {
- console.log('connection', conn)
- if (!conn.parameters.CallSid) return
- call('crm.twilio.api.update_call_log', {
- call_sid: conn.parameters.CallSid,
- status: status,
- })
-}
+// function update_call_log(conn, status = 'Completed') {
+// console.log('connection', conn)
+// if (!conn.parameters.CallSid) return
+// call('crm.twilio.api.update_call_log', {
+// call_sid: conn.parameters.CallSid,
+// status: status,
+// })
+// }
function toggleMute() {
if (_call.value.isMuted()) {
@@ -370,7 +370,7 @@ async function makeOutgoingCall(number) {
callStatus.value = ''
muted.value = false
counterUp.value.stop()
- update_call_log(conn)
+ // update_call_log(conn)
})
_call.value.on('cancel', () => {
log.value = `Call ended from makeOutgoing call cancel.`
diff --git a/frontend/src/pages/CallLogs.vue b/frontend/src/pages/CallLogs.vue
new file mode 100644
index 00000000..98af5c94
--- /dev/null
+++ b/frontend/src/pages/CallLogs.vue
@@ -0,0 +1,124 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/router.js b/frontend/src/router.js
index 50da7de9..55ac8790 100644
--- a/frontend/src/router.js
+++ b/frontend/src/router.js
@@ -39,6 +39,11 @@ const routes = [
name: 'Contacts',
component: () => import('@/pages/Contacts.vue'),
},
+ {
+ path: '/call-logs',
+ name: 'Call Logs',
+ component: () => import('@/pages/CallLogs.vue'),
+ },
{
path: '/dashboard',
name: 'Dashboard',