aliases Chest to force creation of distinct ones

This commit is contained in:
2019-08-04 21:38:32 +02:00
parent a0e4a02e0f
commit 3b39428e76

View File

@@ -47,11 +47,11 @@
<main class=""> <main class="">
<template v-if="isAdding"> <template v-if="isAdding">
<h2 v-show="playerIsGroup">ItemInput</h2> <h2 v-show="playerIsGroup">ItemInput</h2>
<Chest <AddingChest
:items="playerIsGroup ? [] : shopInventory" :items="playerIsGroup ? [] : shopInventory"
:perms="playerIsGroup ? {} : { canBuy: true }" :perms="playerIsGroup ? {} : { canBuy: true }"
@buy="(data) => { switchView('player'); actions.buyItems(data); }"> @buy="(data) => { switchView('player'); actions.buyItems(data); }">
</Chest> </AddingChest>
</template> </template>
<Chest v-else <Chest v-else
:items="showPlayerChest ? loot : state.group_loot" :items="showPlayerChest ? loot : state.group_loot"
@@ -103,6 +103,7 @@ export default {
components: { components: {
PlayerView, PlayerView,
HeaderBar, HeaderBar,
'AddingChest': Chest,
Chest, Chest,
Wealth Wealth
}, },