mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-30 18:47:51 +00:00
Update SidebarChangelogCard.vue
This commit is contained in:
@@ -80,17 +80,15 @@ const handleDismiss = slug => {
|
||||
|
||||
const handleReadMore = () => {
|
||||
const currentPost = unDismissedPosts.value[currentIndex.value];
|
||||
if (currentPost?.url) {
|
||||
window.open(currentPost.url, '_blank');
|
||||
// Also dismiss the card when user clicks read more
|
||||
handleDismiss(currentPost.slug);
|
||||
if (currentPost?.slug) {
|
||||
window.open(`https://www.chatwoot.com/blog/${currentPost.slug}`, '_blank');
|
||||
}
|
||||
};
|
||||
|
||||
const handleCardClick = () => {
|
||||
const currentPost = unDismissedPosts.value[currentIndex.value];
|
||||
if (currentPost?.url) {
|
||||
window.open(currentPost.url, '_blank');
|
||||
if (currentPost?.slug) {
|
||||
window.open(`https://www.chatwoot.com/blog/${currentPost.slug}`, '_blank');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user