mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
client: fix drawer
This commit is contained in:
@@ -65,8 +65,8 @@
|
|||||||
v-for="(label, group) in gearTypesToStrings",
|
v-for="(label, group) in gearTypesToStrings",
|
||||||
:key="group",
|
:key="group",
|
||||||
:item="flatGear[activeItems[group]]",
|
:item="flatGear[activeItems[group]]",
|
||||||
:itemContentClass="'shop_' + flatGear[activeItems[group]].key",
|
:itemContentClass="flatGear[activeItems[group]] ? 'shop_' + flatGear[activeItems[group]].key : null",
|
||||||
:showPopover="flatGear[activeItems[group]] && flatGear[activeItems[group]].key.indexOf('_base_0') === -1",
|
:showPopover="!!flatGear[activeItems[group]] && flatGear[activeItems[group]].key.indexOf('_base_0') === -1",
|
||||||
:label="$t(label)",
|
:label="$t(label)",
|
||||||
:selected="true",
|
:selected="true",
|
||||||
:popoverPosition="'top'",
|
:popoverPosition="'top'",
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
div
|
div
|
||||||
h4.popover-content-title(v-once) {{ item.text() }}
|
h4.popover-content-title {{ item.text() }}
|
||||||
.popover-content-text(v-once) {{ item.notes() }}
|
.popover-content-text {{ item.notes() }}
|
||||||
.popover-content-attr(v-for="attr in ATTRIBUTES", :key="attr", v-once)
|
.popover-content-attr(v-for="attr in ATTRIBUTES", :key="attr", v-once)
|
||||||
span.popover-content-attr-key(v-once) {{ `${$t(attr)}: ` }}
|
span.popover-content-attr-key {{ `${$t(attr)}: ` }}
|
||||||
span.popover-content-attr-val(v-once) {{ `+${item[attr]}` }}
|
span.popover-content-attr-val {{ `+${item[attr]}` }}
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in New Issue
Block a user