fix CharacterTypeahead usage in weapon forms
This commit is contained in:
parent
ba17a17224
commit
80bcbd59db
2 changed files with 5 additions and 3 deletions
|
|
@ -69,10 +69,12 @@
|
|||
contained
|
||||
/>
|
||||
</DetailItem>
|
||||
<DetailItem label="Recruits" sublabel="Character recruited by this weapon">
|
||||
<DetailItem label="Recruits" sublabel="Character recruited by this weapon" editable={true}>
|
||||
<CharacterTypeahead
|
||||
bind:value={editData.recruits}
|
||||
initialCharacter={weapon.recruits ? { id: weapon.recruits.id, name: weapon.recruits.name?.en || weapon.recruits.granblueId, granblueId: weapon.recruits.granblueId } : null}
|
||||
placeholder="Search for character..."
|
||||
contained
|
||||
/>
|
||||
</DetailItem>
|
||||
{:else}
|
||||
|
|
|
|||
|
|
@ -296,8 +296,8 @@
|
|||
</DetailsContainer>
|
||||
|
||||
<DetailsContainer title="Recruits">
|
||||
<DetailItem label="Recruits Character" sublabel="Character recruited by this weapon">
|
||||
<CharacterTypeahead bind:value={editData.recruits} placeholder="Search for character..." />
|
||||
<DetailItem label="Recruits Character" sublabel="Character recruited by this weapon" editable={true}>
|
||||
<CharacterTypeahead bind:value={editData.recruits} placeholder="Search for character..." contained />
|
||||
</DetailItem>
|
||||
</DetailsContainer>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue