diff --git a/webapp/components/_new/generic/TabNavigation/NewTabNavigation.vue b/webapp/components/_new/generic/TabNavigation/NewTabNavigation.vue
new file mode 100644
index 000000000..098a626eb
--- /dev/null
+++ b/webapp/components/_new/generic/TabNavigation/NewTabNavigation.vue
@@ -0,0 +1,161 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/webapp/pages/profile/_id/_slug.vue b/webapp/pages/profile/_id/_slug.vue
index 1a43da14b..493f862ed 100644
--- a/webapp/pages/profile/_id/_slug.vue
+++ b/webapp/pages/profile/_id/_slug.vue
@@ -123,7 +123,9 @@
-
+
+
+
+
@@ -236,6 +239,7 @@ import HcUpload from '~/components/Upload'
import UserAvatar from '~/components/_new/generic/UserAvatar/UserAvatar'
import MasonryGrid from '~/components/MasonryGrid/MasonryGrid.vue'
import MasonryGridItem from '~/components/MasonryGrid/MasonryGridItem.vue'
+import NewTabNavigation from '~/components/_new/generic/TabNavigation/NewTabNavigation'
import { profilePagePosts } from '~/graphql/PostQuery'
import UserQuery from '~/graphql/User'
import { muteUser, unmuteUser } from '~/graphql/settings/MutedUsers'
@@ -264,6 +268,7 @@ export default {
MasonryGrid,
MasonryGridItem,
FollowList,
+ NewTabNavigation,
},
transition: {
name: 'slide-up',
@@ -310,6 +315,28 @@ export default {
const { slug } = this.user || {}
return slug && `@${slug}`
},
+ tabOptions() {
+ return [
+ {
+ type: 'post',
+ title: this.$t('common.post', null, this.user.contributionsCount),
+ count: this.user.contributionsCount,
+ disabled: this.user.contributionsCount === 0,
+ },
+ {
+ type: 'comment',
+ title: this.$t('profile.commented'),
+ count: this.user.commentedCount,
+ disabled: this.user.commentedCount === 0,
+ },
+ {
+ type: 'shout',
+ title: this.$t('profile.shouted'),
+ count: this.user.shoutedCount,
+ disabled: this.user.shoutedCount === 0,
+ },
+ ]
+ },
},
methods: {
removePostFromList(deletedPost) {
@@ -473,33 +500,33 @@ export default {