Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Valour/Client/ContextMenu/Menus/ChannelContextMenu.razor
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
}

private async Task OnClickCopyId(){
await JsRuntime.InvokeVoidAsync("clipboardCopy.copyText", Data.Channel.Id);
await JsRuntime.InvokeVoidAsync("clipboardCopy.copyText", Data.Channel.Id.ToString());
ToastContainer.Instance.AddToast(new ToastData("Copied!", "Channel ID copied to clipboard", ToastProgressState.Success));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ else
}

private async Task OnClickCopyMemberId(){
await JsRuntime.InvokeVoidAsync("clipboardCopy.copyText", Data.Member.Id);
await JsRuntime.InvokeVoidAsync("clipboardCopy.copyText", Data.Member.Id.ToString());
ToastContainer.Instance.AddToast(new ToastData("Copied!", "Member ID copied to clipboard", ToastProgressState.Success));
}

private async Task OnClickCopyUserId(){
await JsRuntime.InvokeVoidAsync("clipboardCopy.copyText", Data.Member.UserId);
await JsRuntime.InvokeVoidAsync("clipboardCopy.copyText", Data.Member.UserId.ToString());
ToastContainer.Instance.AddToast(new ToastData("Copied!", "User ID copied to clipboard", ToastProgressState.Success));
}

Expand Down
2 changes: 1 addition & 1 deletion Valour/Client/ContextMenu/Menus/MessageContextMenu.razor
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
}

private async Task OnClickCopyId(){
await JsRuntime.InvokeVoidAsync("clipboardCopy.copyText", Data.Message.Id);
await JsRuntime.InvokeVoidAsync("clipboardCopy.copyText", Data.Message.Id.ToString());
ToastContainer.Instance.AddToast(new ToastData("Copied!", "Message ID copied to clipboard", ToastProgressState.Success));
}
}
2 changes: 1 addition & 1 deletion Valour/Client/ContextMenu/Menus/PlanetContextMenu.razor
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@

private async Task OnClickCopyId()
{
await JsRuntime.InvokeVoidAsync("clipboardCopy.copyText", Data.Planet.Id);
await JsRuntime.InvokeVoidAsync("clipboardCopy.copyText", Data.Planet.Id.ToString());
ToastContainer.Instance.AddToast(new ToastData("Copied!", "Planet ID copied to clipboard", ToastProgressState.Success));
}

Expand Down
4 changes: 3 additions & 1 deletion Valour/Client/ContextMenu/Menus/UserContextMenu.razor
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ else
ToastContainer.Instance.AddToast(new ToastData("Copied!", "Username copied to clipboard", ToastProgressState.Success));
}

// I think this and the one for Member should be consolidated to a single
// function, they appear to do the exact same thing, and it's duplicate work.
private async Task OnClickCopyUserId(){
await JsRuntime.InvokeVoidAsync("clipboardCopy.copyText", Data.User.Id);
await JsRuntime.InvokeVoidAsync("clipboardCopy.copyText", Data.User.Id.ToString());
ToastContainer.Instance.AddToast(new ToastData("Copied!", "User ID copied to clipboard", ToastProgressState.Success));
}

Expand Down