refactor: update Activities component to scroll on success

This commit is contained in:
Shariq Ansari 2025-08-01 17:44:35 +05:30
parent 564d2b1ac5
commit 76149b0c79
2 changed files with 2 additions and 0 deletions

View File

@ -173,6 +173,7 @@ declare module 'vue' {
LucideChevronRight: typeof import('~icons/lucide/chevron-right')['default']
LucidePenLine: typeof import('~icons/lucide/pen-line')['default']
LucideRefreshCcw: typeof import('~icons/lucide/refresh-ccw')['default']
LucideX: typeof import('~icons/lucide/x')['default']
MarkAsDoneIcon: typeof import('./src/components/Icons/MarkAsDoneIcon.vue')['default']
MaximizeIcon: typeof import('./src/components/Icons/MaximizeIcon.vue')['default']
MenuIcon: typeof import('./src/components/Icons/MenuIcon.vue')['default']

View File

@ -555,6 +555,7 @@ const all_activities = createResource({
transform: ([versions, calls, notes, tasks, attachments]) => {
return { versions, calls, notes, tasks, attachments }
},
onSuccess: () => nextTick(() => scroll()),
})
const showWhatsappTemplates = ref(false)