moves request inside own component

This commit is contained in:
2019-06-13 21:30:45 +02:00
parent a1a270f5f0
commit 5a3c628e8e
4 changed files with 35 additions and 15 deletions

View File

@@ -25,12 +25,7 @@
<tr :key="`row-${idx}`">
<td>{{item.name}}</td>
<td v-if="canGrab">
<button class="button is-primary" disabled>
<span class="icon">
<i class="fas fa-praying-hands"></i>
</span>
<small>Request pending...</small>
</button>
<Request :item="item.id"></Request>
</td>
<td v-if="canSell">
<label class="checkbox" v-show="is_selling">
@@ -50,6 +45,7 @@
<script>
import { store } from '../App.vue'
import Request from './Request.vue'
/*
The chest displays the collection of items owned by a player
@@ -70,6 +66,9 @@
default: 0
}
},
components: {
Request
},
data () {
return {
app_state: store.state,