diff --git a/Iceshrimp.Frontend/Components/Note/NoteFooter.razor b/Iceshrimp.Frontend/Components/Note/NoteFooter.razor index 3b3de503..cc8efaba 100644 --- a/Iceshrimp.Frontend/Components/Note/NoteFooter.razor +++ b/Iceshrimp.Frontend/Components/Note/NoteFooter.razor @@ -109,6 +109,12 @@ @Loc["Copy link (remote)"] } + @if (!string.IsNullOrWhiteSpace(Note.Text)) + { + + @Loc["Copy contents"] + + } @if (Note.User.Id == Session.Current?.Id) {
@@ -151,9 +157,11 @@ var instance = await MetadataSvc.Instance.Value; await Js.InvokeVoidAsync("navigator.clipboard.writeText", $"https://{instance.WebDomain}/notes/{Note.Id}"); } - + private void CopyLinkRemote() => Js.InvokeVoidAsync("navigator.clipboard.writeText", Note.Url); + private void CopyContents() => Js.InvokeVoidAsync("navigator.clipboard.writeText", Note.Text); + private void Like() { _ = NoteActions.ToggleLikeAsync(Note);