mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 05:37:22 +01:00
* use countBadge instead of class * generic purchase action from buyModal to handle all kind of purchases - able to purchase backgrounds - return backgrounds as flat array * List MysteryItem & Hourglass in Inventory/Items * add Subscribers Gem Item (purchase by gold) * fix mysterybox * sort unlocked gear first * add orb of rebirth to market * remove old quest scroll + class of the quest items * more padding on countBadge * use the generic purchase on quests
34 lines
533 B
Vue
34 lines
533 B
Vue
<template lang="pug">
|
|
span.badge.badge-pill.badge-item.badge-count(
|
|
v-if="show && count != 0",
|
|
) {{ count }}
|
|
</template>
|
|
|
|
<style lang="scss">
|
|
@import '~client/assets/scss/colors.scss';
|
|
|
|
.badge-count {
|
|
right: -9px;
|
|
color: $white;
|
|
background: $gray-200;
|
|
padding: 4.5px 8.5px;
|
|
min-width: 24px;
|
|
height: 24px;
|
|
box-shadow: 0 1px 1px 0 rgba($black, 0.12);
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
show: {
|
|
type: Boolean,
|
|
},
|
|
count: {
|
|
type: Number,
|
|
},
|
|
},
|
|
};
|
|
</script>
|