Fehlender EventID Filter zu Teilnehmer tabelle hinzugefügt. Adatar-alternative in Nutzer übersicht
This commit is contained in:
@@ -264,6 +264,7 @@ export const Form = ({ event }: { event?: Event }) => {
|
|||||||
showSearch
|
showSearch
|
||||||
getFilter={(searchTerm) =>
|
getFilter={(searchTerm) =>
|
||||||
({
|
({
|
||||||
|
AND: [{ eventId: event?.id }],
|
||||||
OR: [
|
OR: [
|
||||||
{
|
{
|
||||||
User: {
|
User: {
|
||||||
|
|||||||
@@ -776,6 +776,7 @@ export const AdminForm = ({
|
|||||||
{discordAccount && (
|
{discordAccount && (
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
{discordAccount.avatar ? (
|
||||||
<Image
|
<Image
|
||||||
src={`https://cdn.discordapp.com/avatars/${discordAccount.discordId}/${discordAccount.avatar}.png`}
|
src={`https://cdn.discordapp.com/avatars/${discordAccount.discordId}/${discordAccount.avatar}.png`}
|
||||||
alt="Discord Avatar"
|
alt="Discord Avatar"
|
||||||
@@ -783,6 +784,11 @@ export const AdminForm = ({
|
|||||||
height={40}
|
height={40}
|
||||||
className="h-10 w-10 rounded-full"
|
className="h-10 w-10 rounded-full"
|
||||||
/>
|
/>
|
||||||
|
) : (
|
||||||
|
<div className="flex h-10 w-10 items-center justify-center rounded-full bg-gray-500 text-white">
|
||||||
|
N/A
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</td>
|
</td>
|
||||||
<td>{discordAccount.username}</td>
|
<td>{discordAccount.username}</td>
|
||||||
<td>{discordAccount.discordId}</td>
|
<td>{discordAccount.discordId}</td>
|
||||||
@@ -792,7 +798,8 @@ export const AdminForm = ({
|
|||||||
{formerDiscordAccounts.map((account) => (
|
{formerDiscordAccounts.map((account) => (
|
||||||
<tr key={account.discordId}>
|
<tr key={account.discordId}>
|
||||||
<td>
|
<td>
|
||||||
{account.DiscordAccount && (
|
{account.DiscordAccount &&
|
||||||
|
(account.DiscordAccount.avatar ? (
|
||||||
<Image
|
<Image
|
||||||
src={`https://cdn.discordapp.com/avatars/${account.DiscordAccount.discordId}/${account.DiscordAccount.avatar}.png`}
|
src={`https://cdn.discordapp.com/avatars/${account.DiscordAccount.discordId}/${account.DiscordAccount.avatar}.png`}
|
||||||
alt="Discord Avatar"
|
alt="Discord Avatar"
|
||||||
@@ -800,7 +807,11 @@ export const AdminForm = ({
|
|||||||
height={40}
|
height={40}
|
||||||
className="h-10 w-10 rounded-full"
|
className="h-10 w-10 rounded-full"
|
||||||
/>
|
/>
|
||||||
)}
|
) : (
|
||||||
|
<div className="flex h-10 w-10 items-center justify-center rounded-full bg-gray-500 text-white">
|
||||||
|
N/A
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
</td>
|
</td>
|
||||||
<td>{account.DiscordAccount?.username || "Unbekannt"}</td>
|
<td>{account.DiscordAccount?.username || "Unbekannt"}</td>
|
||||||
<td>{account.DiscordAccount?.discordId || "Unbekannt"}</td>
|
<td>{account.DiscordAccount?.discordId || "Unbekannt"}</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user