Update SidebarChangelogCard.vue

This commit is contained in:
Muhsin
2025-10-16 20:25:54 +05:30
parent aa859f91ee
commit 7718a5176c

View File

@@ -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');
}
};