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