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