+
+
+
-
+
{{ authorName || '-' }}
-
- {{ categoryName }}
-
+
-
-
+
+ {{ categoryIcon }}
+
+
+
+ {{ categoryName }}
+
+
+
+
+
+
{{
t('HELP_CENTER.ARTICLES_PAGE.ARTICLE_CARD.CARD.VIEWS', {
count: views,
@@ -187,7 +200,7 @@ const handleClick = id => {
-
+
{{ lastUpdatedAt }}
diff --git a/app/javascript/dashboard/components-next/HelpCenter/HelpCenterLayout.vue b/app/javascript/dashboard/components-next/HelpCenter/HelpCenterLayout.vue
index 98fe46c13..5cdbecc6d 100644
--- a/app/javascript/dashboard/components-next/HelpCenter/HelpCenterLayout.vue
+++ b/app/javascript/dashboard/components-next/HelpCenter/HelpCenterLayout.vue
@@ -14,6 +14,14 @@ defineProps({
type: Number,
default: 1,
},
+ headerTitle: {
+ type: String,
+ default: '',
+ },
+ createButtonLabel: {
+ type: String,
+ default: '',
+ },
totalItems: {
type: Number,
default: 100,
@@ -32,7 +40,7 @@ defineProps({
},
});
-const emit = defineEmits(['update:currentPage']);
+const emit = defineEmits(['update:currentPage', 'create']);
const route = useRoute();
@@ -55,48 +63,75 @@ const updateCurrentPage = page => {
const togglePortalSwitcher = () => {
showPortalSwitcher.value = !showPortalSwitcher.value;
};
+
+const onClickCreateButton = () => {
+ emit('create');
+};
-
-
-
-
+
+
+
- {{ activePortalName }}
-
-
-
-
+
+ {{ activePortalName }}
+
+
+
+
-
-
+
+ {{ headerTitle }}
+
+
+
-
+
@@ -105,6 +140,7 @@ const togglePortalSwitcher = () => {
:current-page="currentPage"
:total-items="totalItems"
:items-per-page="itemsPerPage"
+ class="max-w-5xl"
@update:current-page="updateCurrentPage"
/>
diff --git a/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticlePage/ArticleHeaderControls.vue b/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticlePage/ArticleHeaderControls.vue
index 6565fab82..306bf3c2d 100644
--- a/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticlePage/ArticleHeaderControls.vue
+++ b/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticlePage/ArticleHeaderControls.vue
@@ -29,12 +29,7 @@ const props = defineProps({
},
});
-const emit = defineEmits([
- 'tabChange',
- 'localeChange',
- 'categoryChange',
- 'newArticle',
-]);
+const emit = defineEmits(['tabChange', 'localeChange', 'categoryChange']);
const route = useRoute();
const { t } = useI18n();
@@ -126,23 +121,21 @@ const handleCategoryAction = ({ value }) => {
isCategoryMenuOpen.value = false;
};
-const handleNewArticle = () => {
- emit('newArticle');
-};
-
const handleTabChange = value => {
emit('tabChange', value);
};
-
+
-
+
@@ -159,7 +152,7 @@ const handleTabChange = value => {
v-if="isLocaleMenuOpen"
:menu-items="localeMenuItems"
show-search
- class="left-0 w-40 max-w-[300px] mt-2 overflow-y-auto xl:right-0 top-full max-h-60"
+ class="ltr:left-0 rtl:right-0 w-40 max-w-[300px] mt-2 overflow-y-auto top-full max-h-60"
@action="handleLocaleAction"
/>
@@ -180,18 +173,12 @@ const handleTabChange = value => {
v-if="isCategoryMenuOpen"
:menu-items="categoryMenuItems"
show-search
- class="left-0 w-48 mt-2 overflow-y-auto xl:right-0 top-full max-h-60"
+ class="ltr:right-0 rtl:left-0 w-48 mt-2 overflow-y-auto top-full max-h-60"
@action="handleCategoryAction"
/>
-
diff --git a/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticlePage/ArticlesPage.vue b/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticlePage/ArticlesPage.vue
index e31d40d8a..46bdf0433 100644
--- a/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticlePage/ArticlesPage.vue
+++ b/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticlePage/ArticlesPage.vue
@@ -136,7 +136,12 @@ const navigateToNewArticlePage = () => {
:total-items="articlesCount"
:items-per-page="25"
:header="portalName"
+ :header-title="t('HELP_CENTER.ARTICLES_PAGE.HEADER')"
+ :create-button-label="
+ t('HELP_CENTER.ARTICLES_PAGE.ARTICLES_HEADER.NEW_ARTICLE')
+ "
:show-pagination-footer="shouldShowPaginationFooter"
+ @create="navigateToNewArticlePage"
@update:current-page="handlePageChange"
>
@@ -149,7 +154,6 @@ const navigateToNewArticlePage = () => {
@tab-change="handleTabChange"
@locale-change="handleLocaleAction"
@category-change="handleCategoryAction"
- @new-article="navigateToNewArticlePage"
/>
{
{
diff --git a/app/javascript/dashboard/components-next/tabbar/TabBar.vue b/app/javascript/dashboard/components-next/tabbar/TabBar.vue
index cce6e792a..70979c511 100644
--- a/app/javascript/dashboard/components-next/tabbar/TabBar.vue
+++ b/app/javascript/dashboard/components-next/tabbar/TabBar.vue
@@ -77,7 +77,7 @@ const showDivider = index => {