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)">
|
<DetailItem label="Wiki (JP)">
|
||||||
{#if character.wiki?.ja}
|
{#if character.wiki?.ja}
|
||||||
<Button
|
<Button
|
||||||
href={buildWikiJaUrl(character.wiki.ja) ?? undefined}
|
href={buildWikiJaUrl(character.wiki.ja, 'character') ?? undefined}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
variant="element-ghost"
|
variant="element-ghost"
|
||||||
element={elementName}
|
element={elementName}
|
||||||
|
|
|
||||||
|
|
@ -349,7 +349,7 @@
|
||||||
placeholder="Japanese page name"
|
placeholder="Japanese page name"
|
||||||
width="480px"
|
width="480px"
|
||||||
hasLinkButton={true}
|
hasLinkButton={true}
|
||||||
linkUrl={buildWikiJaUrl(editData.wikiJa)}
|
linkUrl={buildWikiJaUrl(editData.wikiJa, 'character')}
|
||||||
/>
|
/>
|
||||||
<DetailItem
|
<DetailItem
|
||||||
label="Gamewith"
|
label="Gamewith"
|
||||||
|
|
|
||||||
|
|
@ -595,7 +595,7 @@
|
||||||
placeholder="Japanese page name"
|
placeholder="Japanese page name"
|
||||||
width="480px"
|
width="480px"
|
||||||
hasLinkButton={true}
|
hasLinkButton={true}
|
||||||
linkUrl={buildWikiJaUrl(formDataByPage[selectedWikiPage].wikiJa)}
|
linkUrl={buildWikiJaUrl(formDataByPage[selectedWikiPage].wikiJa, 'character')}
|
||||||
/>
|
/>
|
||||||
<SuggestionDetailItem
|
<SuggestionDetailItem
|
||||||
label="Gamewith"
|
label="Gamewith"
|
||||||
|
|
|
||||||
|
|
@ -250,7 +250,7 @@
|
||||||
</DetailItem>
|
</DetailItem>
|
||||||
<DetailItem label="Wiki (JP)">
|
<DetailItem label="Wiki (JP)">
|
||||||
{#if summon.wiki?.ja}
|
{#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">
|
element={elementName} size="small" rightIcon="link">
|
||||||
Open
|
Open
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
|
|
@ -282,7 +282,7 @@
|
||||||
placeholder="Japanese page name"
|
placeholder="Japanese page name"
|
||||||
width="480px"
|
width="480px"
|
||||||
hasLinkButton={true}
|
hasLinkButton={true}
|
||||||
linkUrl={buildWikiJaUrl(editData.wikiJa)}
|
linkUrl={buildWikiJaUrl(editData.wikiJa, 'summon')}
|
||||||
/>
|
/>
|
||||||
<DetailItem
|
<DetailItem
|
||||||
label="Gamewith"
|
label="Gamewith"
|
||||||
|
|
|
||||||
|
|
@ -577,7 +577,7 @@
|
||||||
placeholder="Japanese page name"
|
placeholder="Japanese page name"
|
||||||
width="480px"
|
width="480px"
|
||||||
hasLinkButton={true}
|
hasLinkButton={true}
|
||||||
linkUrl={buildWikiJaUrl(formDataByPage[selectedWikiPage].wikiJa)}
|
linkUrl={buildWikiJaUrl(formDataByPage[selectedWikiPage].wikiJa, 'summon')}
|
||||||
/>
|
/>
|
||||||
<SuggestionDetailItem
|
<SuggestionDetailItem
|
||||||
label="Gamewith"
|
label="Gamewith"
|
||||||
|
|
|
||||||
|
|
@ -258,7 +258,7 @@
|
||||||
<DetailItem label="Wiki (JP)">
|
<DetailItem label="Wiki (JP)">
|
||||||
{#if weapon.wiki?.ja}
|
{#if weapon.wiki?.ja}
|
||||||
<Button
|
<Button
|
||||||
href={buildWikiJaUrl(weapon.wiki.ja) ?? undefined}
|
href={buildWikiJaUrl(weapon.wiki.ja, 'weapon') ?? undefined}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
variant="element-ghost"
|
variant="element-ghost"
|
||||||
element={elementName}
|
element={elementName}
|
||||||
|
|
|
||||||
|
|
@ -292,7 +292,7 @@
|
||||||
placeholder="Japanese page name"
|
placeholder="Japanese page name"
|
||||||
width="480px"
|
width="480px"
|
||||||
hasLinkButton={true}
|
hasLinkButton={true}
|
||||||
linkUrl={buildWikiJaUrl(editData.wikiJa)}
|
linkUrl={buildWikiJaUrl(editData.wikiJa, 'weapon')}
|
||||||
/>
|
/>
|
||||||
<DetailItem
|
<DetailItem
|
||||||
label="Gamewith"
|
label="Gamewith"
|
||||||
|
|
|
||||||
|
|
@ -586,7 +586,7 @@
|
||||||
placeholder="Japanese page name"
|
placeholder="Japanese page name"
|
||||||
width="480px"
|
width="480px"
|
||||||
hasLinkButton={true}
|
hasLinkButton={true}
|
||||||
linkUrl={buildWikiJaUrl(formDataByPage[selectedWikiPage].wikiJa)}
|
linkUrl={buildWikiJaUrl(formDataByPage[selectedWikiPage].wikiJa, 'weapon')}
|
||||||
/>
|
/>
|
||||||
<SuggestionDetailItem
|
<SuggestionDetailItem
|
||||||
label="Gamewith"
|
label="Gamewith"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue