diff --git a/CouchLog/Components/Pages/PrivateList/Components/EntityCard.razor b/CouchLog/Components/Pages/PrivateList/Components/EntityCard.razor
index 7cecc62..1b5b8d4 100644
--- a/CouchLog/Components/Pages/PrivateList/Components/EntityCard.razor
+++ b/CouchLog/Components/Pages/PrivateList/Components/EntityCard.razor
@@ -1,10 +1,91 @@
@using CouchLog.Data
-
- @PrivateEntity.GlobalEntity.Title
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @PrivateEntity.GlobalEntity.Title
+
+ Bearbeiten
+ Entfernen
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Details
+
+
+
+
+
+
+
@code
{
[Parameter] public PrivateEntity PrivateEntity { get; set; } = null!;
+ [Parameter] public List UserWatchStatuses { get; set; } = null!;
}
diff --git a/CouchLog/Components/Pages/PrivateList/PrivateList.razor b/CouchLog/Components/Pages/PrivateList/PrivateList.razor
index 4422a10..e1e4602 100644
--- a/CouchLog/Components/Pages/PrivateList/PrivateList.razor
+++ b/CouchLog/Components/Pages/PrivateList/PrivateList.razor
@@ -7,7 +7,7 @@
@using Microsoft.AspNetCore.Identity
@using Microsoft.EntityFrameworkCore
-@inject ApplicationDbContext CouchLogDB
+@inject ApplicationDbContext CouchLogDb
@inject UserManager UserManager
@inject AuthenticationStateProvider AuthenticationStateProvider
@inject NavigationManager NavigationManager
@@ -80,7 +80,7 @@
if (_appUser != null)
{
- _privateEntities = await CouchLogDB.PrivateEntities
+ _privateEntities = await CouchLogDb.PrivateEntities
.Where(x => x.UserId == _appUser.Id)
.Include(x => x.GlobalEntity)
.Include(x => x.UserWatchStatus)
@@ -88,7 +88,7 @@
.OrderByDescending(entity => entity.LastChange ?? entity.CreationTime)
.ToListAsync();
- _userWatchStatuses = await CouchLogDB.UserWatchStatuses.OrderByDescending(entity => entity.Id).ToListAsync();
+ _userWatchStatuses = await CouchLogDb.UserWatchStatuses.OrderByDescending(entity => entity.Id).ToListAsync();
}
}
}
\ No newline at end of file