1
0
forked from test/crm

fix: added new email button on email tab

This commit is contained in:
Shariq Ansari 2023-12-24 13:05:43 +05:30
parent 2d79d82907
commit ba2074cb67

View File

@ -4,7 +4,17 @@
{{ title }} {{ title }}
</div> </div>
<Button <Button
v-if="title == 'Calls'" v-if="title == 'Emails'"
variant="solid"
@click="$refs.emailBox.show = true"
>
<template #prefix>
<FeatherIcon name="plus" class="h-4 w-4" />
</template>
<span>New Email</span>
</Button>
<Button
v-else-if="title == 'Calls'"
variant="solid" variant="solid"
@click="makeCall(doc.data.mobile_no)" @click="makeCall(doc.data.mobile_no)"
> >
@ -578,7 +588,7 @@
/> />
<Button <Button
v-else-if="title == 'Emails'" v-else-if="title == 'Emails'"
label="Send Email" label="New Email"
@click="$refs.emailBox.show = true" @click="$refs.emailBox.show = true"
/> />
<Button <Button
@ -974,7 +984,7 @@ function scroll(el) {
let e = document.getElementsByClassName('activity') let e = document.getElementsByClassName('activity')
el = e[e.length - 1] el = e[e.length - 1]
} }
if (!useElementVisibility(el).value) { if (el && !useElementVisibility(el).value) {
el.scrollIntoView({ behavior: 'smooth' }) el.scrollIntoView({ behavior: 'smooth' })
el.focus() el.focus()
} }