feat(deals): plan activities on the deal and create them from the board
Show related activities on deal detail, prefill dealId on activity create, and add a side-panel quick create from pipeline cards. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -544,6 +544,16 @@ async function load() {
|
||||
personId.value = incomingPerson;
|
||||
}
|
||||
leadId.value = typeof route.query.leadId === 'string' ? route.query.leadId : '';
|
||||
const incomingDeal =
|
||||
typeof route.query.dealId === 'string' ? route.query.dealId : '';
|
||||
if (incomingDeal) {
|
||||
dealId.value = incomingDeal;
|
||||
const linkedDeal = deals.value.find((d) => d.id === incomingDeal);
|
||||
if (linkedDeal?.person?.id && !personId.value) {
|
||||
await ensurePersonLoaded(linkedDeal.person.id);
|
||||
personId.value = linkedDeal.person.id;
|
||||
}
|
||||
}
|
||||
const incomingDef =
|
||||
typeof route.query.typeDefId === 'string'
|
||||
? activityTypes.byId.value.get(route.query.typeDefId)
|
||||
|
||||
Reference in New Issue
Block a user