diff --git a/frontend/src/components/MobileLayout.vue b/frontend/src/components/MobileLayout.vue index b419854e..8aa5a5dc 100644 --- a/frontend/src/components/MobileLayout.vue +++ b/frontend/src/components/MobileLayout.vue @@ -80,6 +80,7 @@ onMounted(() => { {}, { onSuccess(data) { + destructureSidebarLinks() filterLinksToShow(data) addOtherLinks() }, @@ -103,6 +104,16 @@ watch(showMenu, (val) => { } }) +const destructureSidebarLinks = () => { + let links = [] + sidebarLinks.value.forEach((link) => { + link.items?.forEach((item) => { + links.push(item) + }) + }) + sidebarLinks.value = links +} + const filterLinksToShow = (data) => { Object.keys(data).forEach((key) => { if (!parseInt(data[key])) { diff --git a/frontend/src/pages/CertifiedParticipants.vue b/frontend/src/pages/CertifiedParticipants.vue index f4940f06..27c96843 100644 --- a/frontend/src/pages/CertifiedParticipants.vue +++ b/frontend/src/pages/CertifiedParticipants.vue @@ -13,41 +13,47 @@
-
+
{{ memberCount }} {{ __('certified members') }}
-
- -
- +
+
+
+ +
- -
@@ -59,10 +65,10 @@ username: participant.username, }, }" - class="flex h-15 rounded-md hover:bg-surface-gray-2 px-3" + class="flex rounded-md hover:bg-surface-gray-2 px-3" >
-
- {{ __('{0} Open Jobs').format(jobCount) }} -
- -
+
+
+ {{ __('{0} {1} Jobs').format(jobCount, activeTab) }} +
- - - - - - + +
+