inital commit to add confirmation to animalEars (#9666)

This commit is contained in:
Julius Jung
2018-01-05 14:26:45 -05:00
committed by Sabe Jones
parent acf4b4da63
commit 4576353f26
2 changed files with 5 additions and 2 deletions

View File

@@ -1050,7 +1050,6 @@ export default {
return own;
},
animalEars () {
// @TODO: This is not like other purchase items
// @TODO: For some resonse when I use $set on the user purchases object, this is not recomputed. Hack for now
let backgroundUpdate = this.backgroundUpdate; // eslint-disable-line
let keys = this.animalEarsKeys;
@@ -1065,7 +1064,7 @@ export default {
option.locked = locked;
option.click = () => {
let type = this.user.preferences.costume ? 'costume' : 'equipped';
return locked ? this.purchase('gear', newKey) : this.equip(newKey, type);
return locked ? this.unlock(`items.gear.owned.${newKey}`) : this.equip(newKey, type);
};
return option;
});