UI fixes, adds blanket impls of buy/sell signals

This commit is contained in:
2019-08-01 21:57:47 +02:00
parent f1d088596d
commit e56c8df121
6 changed files with 70 additions and 19 deletions

View File

@@ -21,6 +21,12 @@ export default {
.then(_ => { if (AppStorage.debug) this.notifications.push("Claim withdrawn")})
},
buyItems(items) {
this.notifications.push(`Would buy ${items.length} items`);
},
sellItems (items) {
this.notifications.push(`Would sell ${items.length} items`);
},
parseLoot (items) {
this.loot = [];
items.map(item => {
@@ -57,6 +63,8 @@ export default {
updateWealth: this.updateWealth,
putClaim: this.putClaim,
withdrawClaim: this.withdrawClaim,
buyItems: this.buyItems,
sellItems: this.sellItems,
}
})
}