works on Loot adding UI

This commit is contained in:
2019-10-04 16:02:22 +02:00
parent 1ff2429244
commit 4f6970c423
2 changed files with 56 additions and 55 deletions

View File

@@ -56,7 +56,13 @@
</nav>
<main class="section">
<template v-if="isAdding">
<ItemInput v-if="playerIsGroup" :source="state.inventory" @addItem="item => pending_loot.push(item)"></ItemInput>
<div v-if="playerIsGroup" class="box">
<ItemInput v-if="playerIsGroup"
:source="state.inventory"
@addItem="item => pending_loot.push(item)"
></ItemInput>
<button>Envoyer</button>
</div>
<AddingChest
:items="playerIsGroup ? pending_loot : state.inventory"
:perms="playerIsGroup ? {} : { canBuy: true }"