diff --git a/src/Angor/Client/Pages/View.razor b/src/Angor/Client/Pages/View.razor index 6b090623..f549d3b3 100644 --- a/src/Angor/Client/Pages/View.razor +++ b/src/Angor/Client/Pages/View.razor @@ -356,14 +356,15 @@ else
- + *@
@if (founder) { + @if (isGeneratingNsec) @@ -733,13 +734,29 @@ else }); } + private async void OpenInBrowseProfileAsync() + { + var npub = NostrHelper.ConvertHexToNpub(project.ProjectInfo.NostrPubKey); + + if (!string.IsNullOrEmpty(npub)) + { + var url = $"https://profile.angor.io/profile/{npub}"; + + await Js.InvokeVoidAsync("window.open", url, "_blank"); + } + else + { + notificationComponent.ShowNotificationMessage("Public key is not available.", 3); + } + } + private async void OpenInBrowseAsync() { var pubkey = project.ProjectInfo.NostrPubKey; if (!string.IsNullOrEmpty(pubkey)) { - var url = $"https://hub.angor.io/profile/{pubkey}"; + var url = $"https://hub.angor.io/project/{pubkey}"; await Js.InvokeVoidAsync("window.open", url, "_blank"); }