fix: email & website button action
This commit is contained in:
parent
c4549bac77
commit
35cc734bce
@ -1075,6 +1075,8 @@ function scroll(el) {
|
|||||||
}, 500)
|
}, 500)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
defineExpose({ emailBox })
|
||||||
|
|
||||||
nextTick(() => scroll())
|
nextTick(() => scroll())
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -37,6 +37,7 @@
|
|||||||
<div v-if="deal.data" class="flex h-full overflow-hidden">
|
<div v-if="deal.data" class="flex h-full overflow-hidden">
|
||||||
<Tabs v-model="tabIndex" v-slot="{ tab }" :tabs="tabs">
|
<Tabs v-model="tabIndex" v-slot="{ tab }" :tabs="tabs">
|
||||||
<Activities
|
<Activities
|
||||||
|
ref="activities"
|
||||||
doctype="CRM Deal"
|
doctype="CRM Deal"
|
||||||
:title="tab.label"
|
:title="tab.label"
|
||||||
v-model:reload="reload"
|
v-model:reload="reload"
|
||||||
@ -77,13 +78,13 @@
|
|||||||
</Button>
|
</Button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
<Button class="h-7 w-7">
|
<Button class="h-7 w-7">
|
||||||
<EmailIcon class="h-4 w-4" />
|
<EmailIcon class="h-4 w-4" @click="openEmailBox()" />
|
||||||
</Button>
|
</Button>
|
||||||
<Tooltip text="Go to website...">
|
<Tooltip v-if="deal.data.website" text="Go to website...">
|
||||||
<Button class="h-7 w-7">
|
<Button class="h-7 w-7">
|
||||||
<LinkIcon
|
<LinkIcon
|
||||||
class="h-4 w-4"
|
class="h-4 w-4"
|
||||||
@click="openWebsite(deal.data.website)"
|
@click="deal.data.website && openWebsite(deal.data.website)"
|
||||||
/>
|
/>
|
||||||
</Button>
|
</Button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
@ -562,4 +563,10 @@ async function deleteDeal(name) {
|
|||||||
})
|
})
|
||||||
router.push({ name: 'Deals' })
|
router.push({ name: 'Deals' })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const activities = ref(null)
|
||||||
|
|
||||||
|
function openEmailBox() {
|
||||||
|
activities.value.emailBox.show = true
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -42,6 +42,7 @@
|
|||||||
<div v-if="lead?.data" class="flex h-full overflow-hidden">
|
<div v-if="lead?.data" class="flex h-full overflow-hidden">
|
||||||
<Tabs v-model="tabIndex" v-slot="{ tab }" :tabs="tabs">
|
<Tabs v-model="tabIndex" v-slot="{ tab }" :tabs="tabs">
|
||||||
<Activities
|
<Activities
|
||||||
|
ref="activities"
|
||||||
doctype="CRM Lead"
|
doctype="CRM Lead"
|
||||||
:title="tab.label"
|
:title="tab.label"
|
||||||
v-model:reload="reload"
|
v-model:reload="reload"
|
||||||
@ -118,9 +119,9 @@
|
|||||||
</Button>
|
</Button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
<Button class="h-7 w-7">
|
<Button class="h-7 w-7">
|
||||||
<EmailIcon class="h-4 w-4" />
|
<EmailIcon class="h-4 w-4" @click="openEmailBox()" />
|
||||||
</Button>
|
</Button>
|
||||||
<Tooltip text="Go to website...">
|
<Tooltip v-if="lead.data.website" text="Go to website...">
|
||||||
<Button class="h-7 w-7">
|
<Button class="h-7 w-7">
|
||||||
<LinkIcon
|
<LinkIcon
|
||||||
class="h-4 w-4"
|
class="h-4 w-4"
|
||||||
@ -496,4 +497,10 @@ async function convertToDeal(updated) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const activities = ref(null)
|
||||||
|
|
||||||
|
function openEmailBox() {
|
||||||
|
activities.value.emailBox.show = true
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user