442
442
'outgoing_call',
443
443
].includes(activity.activity_type),
444
444
'bg-white': ['added', 'removed', 'changed'].includes(
445
- activity.activity_type
445
+ activity.activity_type,
446
446
),
447
447
}"
448
448
>
528
528
<span v-if =" activity.data.bcc" >{{ activity.data.bcc }}</span >
529
529
</div >
530
530
<EmailContent :content =" activity.data.content" />
531
- <div class =" flex flex-wrap gap-2" >
531
+ <div
532
+ v-if =" activity.data?.attachments?.length"
533
+ class =" flex flex-wrap gap-2"
534
+ >
532
535
<AttachmentItem
533
536
v-for =" a in activity.data.attachments"
534
537
:key =" a.file_url"
@@ -1102,7 +1105,7 @@ const defaultActions = computed(() => {
1102
1105
},
1103
1106
]
1104
1107
return actions .filter ((action ) =>
1105
- action .condition ? action .condition () : true
1108
+ action .condition ? action .condition () : true ,
1106
1109
)
1107
1110
})
1108
1111
@@ -1120,12 +1123,12 @@ const activities = computed(() => {
1120
1123
} else if (props .title == ' Emails' ) {
1121
1124
if (! all_activities .data ? .versions ) return []
1122
1125
activities = all_activities .data .versions .filter (
1123
- (activity ) => activity .activity_type === ' communication'
1126
+ (activity ) => activity .activity_type === ' communication' ,
1124
1127
)
1125
1128
} else if (props .title == ' Comments' ) {
1126
1129
if (! all_activities .data ? .versions ) return []
1127
1130
activities = all_activities .data .versions .filter (
1128
- (activity ) => activity .activity_type === ' comment'
1131
+ (activity ) => activity .activity_type === ' comment' ,
1129
1132
)
1130
1133
} else if (props .title == ' Calls' ) {
1131
1134
if (! all_activities .data ? .calls ) return []
@@ -1338,12 +1341,15 @@ function reply(email, reply_all = false) {
1338
1341
editor .bccEmails = bcc
1339
1342
}
1340
1343
1344
+ let repliedMessage = ` <blockquote>${ message} </blockquote>`
1345
+
1341
1346
editor .editor
1342
1347
.chain ()
1343
1348
.clearContent ()
1344
- .insertContent (message)
1349
+ .insertContent (' <p>.</p>' )
1350
+ .updateAttributes (' paragraph' , {class: ' reply-to-content' })
1351
+ .insertContent (repliedMessage)
1345
1352
.focus (' all' )
1346
- .setBlockquote ()
1347
1353
.insertContentAt (0 , { type: ' paragraph' })
1348
1354
.focus (' start' )
1349
1355
.run ()
0 commit comments