mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-29 07:21:37 +02:00
♻️ Only show the username instead of the name+username
This commit is contained in:
@@ -71,7 +71,6 @@ export type AdminOrgRow = {
|
|||||||
resourceCount: number;
|
resourceCount: number;
|
||||||
owner: {
|
owner: {
|
||||||
userId: string;
|
userId: string;
|
||||||
name: string | null;
|
|
||||||
username: string;
|
username: string;
|
||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
@@ -197,7 +196,6 @@ export async function adminListOrgs(
|
|||||||
)`.as("resourceCount"),
|
)`.as("resourceCount"),
|
||||||
owner: {
|
owner: {
|
||||||
userId: users.userId,
|
userId: users.userId,
|
||||||
name: users.name,
|
|
||||||
username: users.username
|
username: users.username
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ export default function OrgsTable({
|
|||||||
size="sm"
|
size="sm"
|
||||||
>
|
>
|
||||||
<Link href={`/admin/users/${owner.userId}`}>
|
<Link href={`/admin/users/${owner.userId}`}>
|
||||||
{owner.name || owner.username}
|
{owner.username}
|
||||||
<ArrowUpRight className="ml-2 h-3 w-3" />
|
<ArrowUpRight className="ml-2 h-3 w-3" />
|
||||||
</Link>
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user