mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Co-authored-by: iamsivin <iamsivin@gmail.com> Co-authored-by: Sojan <sojan@pepalo.com>
33 lines
562 B
Vue
33 lines
562 B
Vue
<template>
|
|
<category-card
|
|
:title="$t('PORTAL.POPULAR_ARTICLES')"
|
|
:articles="articles.slice(0, 6)"
|
|
@view-all="$emit('view-all')"
|
|
@view="onArticleClick"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
import CategoryCard from './ArticleCategoryCard.vue';
|
|
export default {
|
|
components: { CategoryCard },
|
|
props: {
|
|
articles: {
|
|
type: Array,
|
|
default: () => [],
|
|
},
|
|
categoryPath: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
},
|
|
methods: {
|
|
onArticleClick(link) {
|
|
this.$emit('view', link);
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style></style>
|