a fork of iceshrimp.net but a tweaked frontend to my personal liking. waow
fediverse social-media social iceshrimp fedi
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[frontend] Hide visibility selector when editing note, and say "edit note" when saving

Lunya fc461223 83dcf60d

+26 -2
+14 -2
Iceshrimp.Frontend/Components/Compose.razor
··· 24 24 <button class="btn" title="@Loc["Close"]" @onclick="CloseDialog" aria-label="close" disabled="@(SendLock || UploadingFiles != 0)"> 25 25 <Icon Name="Icons.X"/> 26 26 </button> 27 - <Dropdown TBind="NoteVisibility" Elements="@DropDownCreate()" @bind-Value="NoteDraft.Visibility"/> 27 + @if (string.IsNullOrEmpty(NoteId)) 28 + { 29 + <Dropdown TBind="NoteVisibility" Elements="@DropDownCreate()" @bind-Value="NoteDraft.Visibility"/> 30 + } 28 31 <StateButton OnClick="SendNote" @ref="SendButton" ExtraClasses="post-btn" AriaLabel="post" 29 32 Disabled="@SendingDisabled()"> 30 33 <Initial> 31 - @Loc["ComposeNote"]<Icon Name="Icons.PaperPlaneRight"/> 34 + @if(string.IsNullOrEmpty(NoteId)) 35 + { 36 + @Loc["ComposeNote"] 37 + <Icon Name="Icons.PaperPlaneRight"/> 38 + } 39 + else 40 + { 41 + @Loc["SaveEdit"] 42 + <Icon Name="Icons.Pencil"/> 43 + } 32 44 </Initial> 33 45 <Loading> 34 46 @Loc["Sending"]<LoadingSpinner />
+6
Iceshrimp.Frontend/Localization/Localization.Designer.cs
··· 110 110 return ResourceManager.GetString("ComposeNote", resourceCulture); 111 111 } 112 112 } 113 + 114 + internal static string SaveEdit { 115 + get { 116 + return ResourceManager.GetString("SaveEdit", resourceCulture); 117 + } 118 + } 113 119 } 114 120 }
+3
Iceshrimp.Frontend/Localization/Localization.en-150.resx
··· 48 48 <data name="ComposeNote" xml:space="preserve"> 49 49 <value>Note</value> 50 50 </data> 51 + <data name="SaveEdit" xml:space="preserve"> 52 + <value>Edit Note</value> 53 + </data> 51 54 </root>
+3
Iceshrimp.Frontend/Localization/Localization.resx
··· 56 56 <data name="ComposeNote" xml:space="preserve"> 57 57 <value>Note</value> 58 58 </data> 59 + <data name="SaveEdit" xml:space="preserve"> 60 + <value>Edit Note</value> 61 + </data> 59 62 </root>