mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 09:39:23 +00:00
* client: start working on Inventory/Items * i18n changes and fixes * initial displaying of eggs, food and potions + sorting * add missing files * remove comment * show food, eggs and potions * add label to dropdowns acting as select menus * popovers * move badge to slot and component if necessary, general refactor * fix quantity ordering * some special items, reorganize
25 lines
567 B
Vue
25 lines
567 B
Vue
<template lang="pug">
|
|
div
|
|
h4.popover-content-title {{ item.text() }}
|
|
.popover-content-text {{ item.notes() }}
|
|
.popover-content-attr(v-for="attr in ATTRIBUTES", :key="attr", v-once)
|
|
span.popover-content-attr-key {{ `${$t(attr)}: ` }}
|
|
span.popover-content-attr-val {{ `+${item[attr]}` }}
|
|
</template>
|
|
|
|
<script>
|
|
import { mapState } from 'client/libs/store';
|
|
|
|
export default {
|
|
props: {
|
|
item: {
|
|
type: Object,
|
|
},
|
|
},
|
|
computed: {
|
|
...mapState({
|
|
ATTRIBUTES: 'constants.ATTRIBUTES',
|
|
}),
|
|
},
|
|
};
|
|
</script>
|