Skip to content

Commit

Permalink
fix pets badge and equipping mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
paglias committed Oct 1, 2017
1 parent aa331fd commit 1cf031a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/client/components/inventory/stable/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
div(v-else)
h4.popover-content-title {{ item.name }}
template(slot="itemBadge", scope="context")
starBadge(:selected="item.key === currentPet", :show="item.isOwned()", @click="selectPet(item)")
starBadge(:selected="item.key === currentPet", :show="item.isOwned()", @click="selectPet(item)")

.btn.btn-flat.btn-show-more(@click="setShowMore(petGroup.key)", v-if='petGroup.key !== "specialPets"')
| {{ showMore === petGroup.key ? $t('showLess') : $t('showMore') }}
Expand Down
7 changes: 6 additions & 1 deletion website/client/components/inventory/stable/mountItem.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template lang="pug">
div
.item-wrapper(:id="itemId")
.item-wrapper(@click="click()", :id="itemId")
.item(
:class="{'item-empty': emptyItem}",
)
Expand Down Expand Up @@ -48,5 +48,10 @@ div
itemId: uuid.v4(),
});
},
methods: {
click () {
this.$emit('click', {});
},
},
};
</script>

0 comments on commit 1cf031a

Please sign in to comment.