Make clan tag warning clickable (#4163)

> **Before opening a PR:** discuss new features on
[Discord](https://discord.gg/K9zernJB5z) first, and file bugs or small
improvements as
[issues](https://github.com/openfrontio/OpenFrontIO/issues/new/choose).
You must be assigned to an `approved` issue — unsolicited PRs will be
auto-closed.

**Add approved & assigned issue number here:**

Resolves #4154

## Description:

Adds a join path from reserved clan tag warnings to the clan detail
modal.


https://github.com/user-attachments/assets/cc0f4cb8-be8e-414a-8147-7a744069999e


## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory

## Please put your Discord username so you can be contacted if a bug or
regression is found:

aotumuri
This commit is contained in:
Aotumuri
2026-06-11 05:42:22 +09:00
committed by GitHub
parent e38b25f206
commit dda47b0813
5 changed files with 57 additions and 12 deletions
@@ -254,6 +254,9 @@ export class ClanDetailView extends LitElement {
try {
const result = await joinClan(this.selectedClan.tag);
if ("error" in result) {
if (result.error === "clan_modal.sign_in_for_clans") {
window.showPage?.("page-account");
}
showToast(
result.reason
? translateText(result.error, { reason: result.reason })