moves all api logic inside PlayerView, found weird bug in unpack_gold_value (floating error)

This commit is contained in:
2019-10-18 16:21:00 +02:00
parent 3fce1dc7d0
commit 61c9a4e6d4
7 changed files with 78 additions and 48 deletions

View File

@@ -47,6 +47,8 @@
<td>
<Request
v-if="perms.canGrab"
:id="player"
:claims="claims"
:item="item.id"
@claim="(data) => $emit('claim', data)"
@unclaim="(data) => $emit('unclaim', data)"
@@ -68,6 +70,7 @@
import Request from './Request.vue'
import PercentInput from './PercentInput.vue'
import Selector from './Selector.vue'
import { api } from '../lootalot.js'
/*
The chest displays a collection of items.
@@ -77,6 +80,10 @@
*/
export default {
props: {
player: {
type: Number,
required: true,
},
items: {
type: Array,
required: true,
@@ -85,6 +92,10 @@
type: Object,
required: true,
},
claims: {
type: Object,
required: true,
},
},
components: {
Request,