v0.10.302 #2

Merged
didirus merged 289 commits from feature-clean into beta 2025-07-08 15:00:09 +00:00
2 changed files with 6 additions and 2 deletions
Showing only changes of commit 4386891716 - Show all commits

View File

@@ -14,7 +14,7 @@
<template v-if="orgs?.length > 0">
<div class="orgs-grid">
<nuxt-link
v-for="org in orgs"
v-for="org in sortedOrgs"
:key="org.id"
:to="`/organization/${org.slug}`"
class="universal-card button-base recessed org"
@@ -67,6 +67,8 @@ const { data: orgs, error } = useAsyncData("organizations", () => {
});
});
const sortedOrgs = computed(() => orgs.value.sort((a, b) => a.name.localeCompare(b.name)));
const onlyAcceptedMembers = (members) => members.filter((member) => member?.accepted);
if (error.value) {

View File

@@ -303,7 +303,7 @@
<h2 class="text-lg text-contrast">{{ formatMessage(messages.profileOrganizations) }}</h2>
<div class="flex flex-wrap gap-2">
<nuxt-link
v-for="org in organizations"
v-for="org in sortedOrgs"
:key="org.id"
v-tooltip="org.name"
class="organization"
@@ -516,6 +516,8 @@ try {
});
}
const sortedOrgs = computed(() => organizations.value.sort((a, b) => a.name.localeCompare(b.name)));
if (!user.value) {
throw createError({
fatal: true,