add user edition to admin panel

This commit is contained in:
2025-10-15 14:12:18 +02:00
parent 4fee3a721a
commit 709116536d
3 changed files with 28 additions and 3 deletions

View File

@@ -23,6 +23,10 @@
}
</script>
{#snippet edition(value: 'java' | 'bedrock')}
<span>{value.charAt(0).toUpperCase() + value.slice(1)}</span>
{/snippet}
<DataTable
data={users}
count={true}
@@ -31,7 +35,8 @@
{ key: 'lastname', label: 'Nachname', width: 15, sortable: true },
{ key: 'birthday', label: 'Geburtstag', width: 5, sortable: true },
{ key: 'telephone', label: 'Telefon', width: 12, sortable: true },
{ key: 'username', label: 'Username', width: 20, sortable: true },
{ key: 'username', label: 'Username', width: 10, sortable: true },
{ key: 'edition', label: 'Edition', width: 10, sortable: true, transform: edition },
{ key: 'uuid', label: 'UUID', width: 23 }
]}
onEdit={(user) => (editPopupUser = user)}