Fix card missing props

pull/1/head
Made Baruna 2022-12-17 14:58:05 +08:00
parent fe7ee87154
commit 7f231e6bdd
2 changed files with 5 additions and 1 deletions

View File

@ -14,7 +14,7 @@
const dispatch = createEventDispatcher();
const { open, close } = getContext('simple-modal');
export let cards, decks, deck, size, characterCount, actionCount, compare, showDetail;
export let cards, decks, deck, size, characterCount, actionCount, compare, showDetail, tags;
export let sharedDeck, sharedId;
export let setCompare, addToDeck, removeFromDeck, selectDeck, loadDeck, swapCharacterCardPos;
@ -198,6 +198,7 @@
{compare}
{showDetail}
{index}
{tags}
draggable
count={1}
on:compare={() => setCompare(cards[id])}
@ -215,6 +216,7 @@
{compare}
{count}
{showDetail}
{tags}
on:compare={() => setCompare(cards[id])}
on:addToDeck={() => addToDeck('actions', cards[id])}
on:removeFromDeck={() => removeFromDeck('actions', cards[id])}

View File

@ -11,6 +11,8 @@ const changelog = [
'Add TCG Deck builder, check it out on TCG menu!',
'Fix todo crash caused by Redcrest renamed to Henna Berry',
'Update timeline',
'Bug fixes',
'Update locales',
];
const channel = new BroadcastChannel('paimonmoe-sw');