diff --git a/src/Mangarr.Stack/Pages/Activity/Activity.razor b/src/Mangarr.Stack/Pages/Activity/Activity.razor
index 839a6aa..bc69c76 100644
--- a/src/Mangarr.Stack/Pages/Activity/Activity.razor
+++ b/src/Mangarr.Stack/Pages/Activity/Activity.razor
@@ -23,7 +23,7 @@
@foreach ((ChapterProgressDocument? item, int index) in _items.WithIndex())
{
-
+
}
diff --git a/src/Mangarr.Stack/Pages/Activity/ActivityItem.razor b/src/Mangarr.Stack/Pages/Activity/ActivityItem.razor
index b87097d..facc60e 100644
--- a/src/Mangarr.Stack/Pages/Activity/ActivityItem.razor
+++ b/src/Mangarr.Stack/Pages/Activity/ActivityItem.razor
@@ -1,11 +1,4 @@
-@code {
-
- [Parameter] public ChapterProgressDocument Item { get; set; } = null!;
- [Parameter] public int Index { get; set; }
-
-}
-
-
+
@Index |
@Item.MangaTitle
@@ -17,6 +10,10 @@
+
+
}
else if (Item.IsActive)
{
diff --git a/src/Mangarr.Stack/Pages/Activity/ActivityItem.razor.cs b/src/Mangarr.Stack/Pages/Activity/ActivityItem.razor.cs
new file mode 100644
index 0000000..89109ce
--- /dev/null
+++ b/src/Mangarr.Stack/Pages/Activity/ActivityItem.razor.cs
@@ -0,0 +1,19 @@
+using Mangarr.Stack.Database.Documents;
+using Mangarr.Stack.Database.Repositories;
+using Microsoft.AspNetCore.Components;
+
+namespace Mangarr.Stack.Pages.Activity;
+
+public partial class ActivityItem
+{
+ [Inject] public ChapterProgressRepository ChapterProgressRepository { get; set; } = null!;
+ [Parameter] public ChapterProgressDocument Item { get; set; } = null!;
+ [Parameter] public int Index { get; set; }
+ [Parameter] public EventCallback OnDelete { get; set; }
+
+ private async Task Recycle()
+ {
+ await ChapterProgressRepository.DeleteAsync(Item);
+ await OnDelete.InvokeAsync();
+ }
+}
|