Compare commits

2 Commits

Author SHA1 Message Date
a1a270f5f0 Merge branch 'master' of landoftheunicorn.ovh:rust/lootalot 2019-06-13 16:34:11 +02:00
d257ffc775 adds dummy UX for sell action 2019-06-13 16:26:44 +02:00

View File

@@ -6,8 +6,8 @@
<tr>
<th width="100%" >Objets de {{ player }}</th>
<th v-if="canGrab"></th>
<th v-if="canSell">
<button class="button"
<th v-if="canSell" style="min-width: 120px">
<button class="button is-fullwidth"
:class="is_selling ? 'is-danger' : 'is-warning'"
@click="is_selling = !is_selling"
>
@@ -15,7 +15,7 @@
<i class="fas fa-coins"></i>
</span>
<p v-if="!is_selling">Vendre</p>
<p v-else>{{ totalSellValue }}</p>
<p v-else>{{ totalSellValue ? totalSellValue : 'Annuler' }}</p>
</button>
</th>
</tr>
@@ -33,9 +33,12 @@
</button>
</td>
<td v-if="canSell">
<label class="checkbox">
<input type="checkbox">
{{item.sell_value}}
<label class="checkbox" v-show="is_selling">
<input type="checkbox"
id="`item-${idx}`"
:value="item.id"
v-model="sell_selected">
{{item.sell_value}} GP
</label>
</td>
</tr>