pass entity type to buildWikiJaUrl calls
This commit is contained in:
parent
552c73823d
commit
07d276e469
9 changed files with 9 additions and 9 deletions
|
|
@ -267,7 +267,7 @@
|
|||
<DetailItem label="Wiki (JP)">
|
||||
{#if character.wiki?.ja}
|
||||
<Button
|
||||
href={buildWikiJaUrl(character.wiki.ja) ?? undefined}
|
||||
href={buildWikiJaUrl(character.wiki.ja, 'character') ?? undefined}
|
||||
target="_blank"
|
||||
variant="element-ghost"
|
||||
element={elementName}
|
||||
|
|
|
|||
|
|
@ -349,7 +349,7 @@
|
|||
placeholder="Japanese page name"
|
||||
width="480px"
|
||||
hasLinkButton={true}
|
||||
linkUrl={buildWikiJaUrl(editData.wikiJa)}
|
||||
linkUrl={buildWikiJaUrl(editData.wikiJa, 'character')}
|
||||
/>
|
||||
<DetailItem
|
||||
label="Gamewith"
|
||||
|
|
|
|||
|
|
@ -595,7 +595,7 @@
|
|||
placeholder="Japanese page name"
|
||||
width="480px"
|
||||
hasLinkButton={true}
|
||||
linkUrl={buildWikiJaUrl(formDataByPage[selectedWikiPage].wikiJa)}
|
||||
linkUrl={buildWikiJaUrl(formDataByPage[selectedWikiPage].wikiJa, 'character')}
|
||||
/>
|
||||
<SuggestionDetailItem
|
||||
label="Gamewith"
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@
|
|||
</DetailItem>
|
||||
<DetailItem label="Wiki (JP)">
|
||||
{#if summon.wiki?.ja}
|
||||
<Button href={buildWikiJaUrl(summon.wiki.ja) ?? undefined} target="_blank" variant="element-ghost"
|
||||
<Button href={buildWikiJaUrl(summon.wiki.ja, 'summon') ?? undefined} target="_blank" variant="element-ghost"
|
||||
element={elementName} size="small" rightIcon="link">
|
||||
Open
|
||||
</Button>
|
||||
|
|
|
|||
|
|
@ -282,7 +282,7 @@
|
|||
placeholder="Japanese page name"
|
||||
width="480px"
|
||||
hasLinkButton={true}
|
||||
linkUrl={buildWikiJaUrl(editData.wikiJa)}
|
||||
linkUrl={buildWikiJaUrl(editData.wikiJa, 'summon')}
|
||||
/>
|
||||
<DetailItem
|
||||
label="Gamewith"
|
||||
|
|
|
|||
|
|
@ -577,7 +577,7 @@
|
|||
placeholder="Japanese page name"
|
||||
width="480px"
|
||||
hasLinkButton={true}
|
||||
linkUrl={buildWikiJaUrl(formDataByPage[selectedWikiPage].wikiJa)}
|
||||
linkUrl={buildWikiJaUrl(formDataByPage[selectedWikiPage].wikiJa, 'summon')}
|
||||
/>
|
||||
<SuggestionDetailItem
|
||||
label="Gamewith"
|
||||
|
|
|
|||
|
|
@ -258,7 +258,7 @@
|
|||
<DetailItem label="Wiki (JP)">
|
||||
{#if weapon.wiki?.ja}
|
||||
<Button
|
||||
href={buildWikiJaUrl(weapon.wiki.ja) ?? undefined}
|
||||
href={buildWikiJaUrl(weapon.wiki.ja, 'weapon') ?? undefined}
|
||||
target="_blank"
|
||||
variant="element-ghost"
|
||||
element={elementName}
|
||||
|
|
|
|||
|
|
@ -292,7 +292,7 @@
|
|||
placeholder="Japanese page name"
|
||||
width="480px"
|
||||
hasLinkButton={true}
|
||||
linkUrl={buildWikiJaUrl(editData.wikiJa)}
|
||||
linkUrl={buildWikiJaUrl(editData.wikiJa, 'weapon')}
|
||||
/>
|
||||
<DetailItem
|
||||
label="Gamewith"
|
||||
|
|
|
|||
|
|
@ -586,7 +586,7 @@
|
|||
placeholder="Japanese page name"
|
||||
width="480px"
|
||||
hasLinkButton={true}
|
||||
linkUrl={buildWikiJaUrl(formDataByPage[selectedWikiPage].wikiJa)}
|
||||
linkUrl={buildWikiJaUrl(formDataByPage[selectedWikiPage].wikiJa, 'weapon')}
|
||||
/>
|
||||
<SuggestionDetailItem
|
||||
label="Gamewith"
|
||||
|
|
|
|||
Loading…
Reference in a new issue