moves all api logic inside PlayerView, found weird bug in unpack_gold_value (floating error)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user