mirror of
https://github.com/immich-app/immich
synced 2026-08-22 13:13:05 +00:00
sort users
This commit is contained in:
parent
ac1c4e206e
commit
5c08069ab0
1 changed files with 5 additions and 1 deletions
|
|
@ -92,7 +92,11 @@
|
|||
<p class="text-sm">Owner</p>
|
||||
</div>
|
||||
</div>
|
||||
{#each album.albumPermissions as {user, readonly}}
|
||||
{#each album.albumPermissions.toSorted((a, b) => {
|
||||
if (a.readonly && !b.readonly) return 1;
|
||||
if (!a.readonly && b.readonly) return -1;
|
||||
return a.user.name.localeCompare(b.user.name);
|
||||
}) as {user, readonly}}
|
||||
<div
|
||||
class="flex w-full place-items-center justify-between gap-4 p-5 transition-colors hover:bg-gray-50 dark:hover:bg-gray-700"
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue