fix: make call from activities component

This commit is contained in:
Shariq Ansari 2023-09-26 16:38:14 +05:30
parent 7a31c91b31
commit ed6ba2c716
3 changed files with 3 additions and 5 deletions

View File

@ -3,7 +3,7 @@
<div class="flex h-7 items-center text-xl font-semibold text-gray-800"> <div class="flex h-7 items-center text-xl font-semibold text-gray-800">
{{ title }} {{ title }}
</div> </div>
<Button v-if="title == 'Calls'" variant="solid" @click="emit('makeCall')"> <Button v-if="title == 'Calls'" variant="solid" @click="makeCall(lead.data.mobile_no)">
<PhoneIcon class="h-4 w-4" /> <PhoneIcon class="h-4 w-4" />
</Button> </Button>
<Button <Button
@ -365,7 +365,7 @@
v-if="title == 'Calls'" v-if="title == 'Calls'"
variant="solid" variant="solid"
label="Make a call" label="Make a call"
@click="emit('makeCall')" @click="makeCall(lead.data.mobile_no)"
/> />
<Button <Button
v-else-if="title == 'Notes'" v-else-if="title == 'Notes'"
@ -426,7 +426,7 @@ const props = defineProps({
const lead = defineModel() const lead = defineModel()
const emit = defineEmits(['makeCall', 'makeNote', 'deleteNote']) const emit = defineEmits(['makeNote', 'deleteNote'])
const activities = computed(() => { const activities = computed(() => {
if (props.title == 'Calls') { if (props.title == 'Calls') {

View File

@ -69,7 +69,6 @@
:title="tab.activityTitle" :title="tab.activityTitle"
:activities="tab.content" :activities="tab.content"
v-model="deal" v-model="deal"
@makeCall="makeCall(deal.data.mobile_no)"
@makeNote="(e) => showNote(e)" @makeNote="(e) => showNote(e)"
@deleteNote="(e) => deleteNote(e)" @deleteNote="(e) => deleteNote(e)"
/> />

View File

@ -72,7 +72,6 @@
:title="tab.activityTitle" :title="tab.activityTitle"
:activities="tab.content" :activities="tab.content"
v-model="lead" v-model="lead"
@makeCall="makeCall(lead.data.mobile_no)"
@makeNote="(e) => showNote(e)" @makeNote="(e) => showNote(e)"
@deleteNote="(e) => deleteNote(e)" @deleteNote="(e) => deleteNote(e)"
/> />