- @if (isComposing)
- {
-
-
-
- }
+
+
+
@if (Filter.TimelineType is TimelineType.Notifications && filteredRequests > 0)
{
@@ -461,6 +468,14 @@
await InvokeAsync(StateHasChanged);
}
+ // a composer that opens shows at the top of the feed, where it is, however far down the feed was read
+ async Task ToggleCompose()
+ {
+ isComposing = !isComposing;
+ if (isComposing && feedModule is not null)
+ await feedModule.InvokeVoidAsync("scrollToTop", ScrollId);
+ }
+
async Task ShowPending()
{
var shown = pending;
diff --git a/Resources/AllStrings.it.resx b/Resources/AllStrings.it.resx
index b1b6eef..e6b6410 100644
--- a/Resources/AllStrings.it.resx
+++ b/Resources/AllStrings.it.resx
@@ -1820,4 +1820,7 @@
Menu
+
+ Nuovo post
+
diff --git a/Resources/AllStrings.resx b/Resources/AllStrings.resx
index 406f821..70a33f7 100644
--- a/Resources/AllStrings.resx
+++ b/Resources/AllStrings.resx
@@ -1820,4 +1820,7 @@
Menu
+
+ New post
+