From b39007362ca8dc3d52325cc429d2190bfaf3d372 Mon Sep 17 00:00:00 2001 From: Lilian Date: Fri, 28 Jun 2024 21:35:58 +0200 Subject: [PATCH] [frontend] Add "reaction" notification type --- .../Components/NotificationComponent.razor | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Iceshrimp.Frontend/Components/NotificationComponent.razor b/Iceshrimp.Frontend/Components/NotificationComponent.razor index 5405ce5f..74f27c24 100644 --- a/Iceshrimp.Frontend/Components/NotificationComponent.razor +++ b/Iceshrimp.Frontend/Components/NotificationComponent.razor @@ -5,9 +5,8 @@ @inject IStringLocalizer Loc; @inject NavigationManager NavigationManager -
- @if (NotificationResponse is { User: not null, Type: "like" or "follow" }) + @if (NotificationResponse is { User: not null, Type: "like" or "follow" or "reaction" }) {
@@ -16,7 +15,13 @@ @if (NotificationResponse is { Note: not null, Type: "like", User: not null }) { - @Loc["liked your post: \"{0}\"", NotificationResponse.Note.Text ?? NotificationResponse.Note.Cw ?? "This one!"] + @Loc["liked your post: "] + + } + @if (NotificationResponse is { Note: not null, Type: "reaction" }) + { + + @Loc["reacted to your post: "] }