adds events api
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
@update="actions.updateWealth"
|
||||
></Wealth>
|
||||
<p v-show="notifications.length > 0">{{ notifications }}</p>
|
||||
<button class="button" @click="actions.undoLastAction">Annuler action</button>
|
||||
</header>
|
||||
<nav>
|
||||
<div class="tabs is-centered is-boxed is-medium">
|
||||
|
||||
@@ -75,7 +75,8 @@ export default {
|
||||
putClaim (itemId) { this.call("claims", "PUT", itemId) },
|
||||
withdrawClaim (itemId) { this.call("claims", "DELETE", itemId) },
|
||||
buyItems(items) { this.call("loot", "PUT", items) },
|
||||
sellItems (items) { this.call("loot", "DELETE", items) },
|
||||
sellItems (items) { this.call("loot", "DELETE", { items, global_mod: null, players: null }) },
|
||||
undoLastAction () { this.call("events/last", "DELETE", null) },
|
||||
},
|
||||
watch: {
|
||||
id: {
|
||||
@@ -100,6 +101,7 @@ export default {
|
||||
withdrawClaim: this.withdrawClaim,
|
||||
buyItems: this.buyItems,
|
||||
sellItems: this.sellItems,
|
||||
undoLastAction: this.undoLastAction,
|
||||
},
|
||||
claims: this.claims,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user