From 8fdb5e16f21fdad31b6e6e834640594eff8ccbf7 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Wed, 27 Nov 2024 12:16:55 +0100 Subject: [PATCH] Add: add only main tag in tab --- app/pages/portfolio/index.vue | 5 ++--- types.ts | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/pages/portfolio/index.vue b/app/pages/portfolio/index.vue index 8b52cc3..2e8cdd7 100644 --- a/app/pages/portfolio/index.vue +++ b/app/pages/portfolio/index.vue @@ -28,7 +28,7 @@ const tags: Array<{ label: string, icon: string } & Tag> = [ color: 'black', }, ...TAGS, -].sort((a, b) => a.label.localeCompare(b.label)) +].filter(tag => tag.label === 'All' ? true : tag.sort).sort((a, b) => a.label.localeCompare(b.label)) function updateTag(index: number) { const tag = tags[index] @@ -50,8 +50,7 @@ function updateTag(index: number) { icon="i-ph-warning-duotone" variant="outline" /> -