mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-13 17:52:22 +00:00
submit initial working solution to disallow selling of Saddle (#9663)
This commit is contained in:
parent
b886d7bb33
commit
ec179182e7
3 changed files with 11 additions and 2 deletions
|
|
@ -7,9 +7,16 @@
|
||||||
div.close
|
div.close
|
||||||
span.svg-icon.inline.icon-10(aria-hidden="true", v-html="icons.close", @click="hideDialog()")
|
span.svg-icon.inline.icon-10(aria-hidden="true", v-html="icons.close", @click="hideDialog()")
|
||||||
|
|
||||||
div.content(v-if="item != null")
|
div.content(v-if="item")
|
||||||
|
|
||||||
div.inner-content
|
div.inner-content(v-if="item.sellWarningNote")
|
||||||
|
slot(name="item", :item="item")
|
||||||
|
|
||||||
|
h4.title {{ text ? text : item.text() }}
|
||||||
|
div.text {{ item.sellWarningNote() }}
|
||||||
|
br
|
||||||
|
|
||||||
|
div.inner-content(v-else)
|
||||||
slot(name="item", :item="item")
|
slot(name="item", :item="item")
|
||||||
|
|
||||||
h4.title {{ text ? text : item.text() }}
|
h4.title {{ text ? text : item.text() }}
|
||||||
|
|
|
||||||
|
|
@ -286,6 +286,7 @@
|
||||||
|
|
||||||
"foodSaddleText": "Saddle",
|
"foodSaddleText": "Saddle",
|
||||||
"foodSaddleNotes": "Instantly raises one of your pets into a mount.",
|
"foodSaddleNotes": "Instantly raises one of your pets into a mount.",
|
||||||
|
"foodSaddleSellWarningNote": "Hey! This is a pretty useful item! Are you familiar with how to use a Saddle with your Pets?",
|
||||||
|
|
||||||
"foodNotes": "Feed this to a pet and it may grow into a sturdy steed."
|
"foodNotes": "Feed this to a pet and it may grow into a sturdy steed."
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -353,6 +353,7 @@ api.food = {
|
||||||
canBuy () {
|
canBuy () {
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
sellWarningNote: t('foodSaddleSellWarningNote'),
|
||||||
text: t('foodSaddleText'),
|
text: t('foodSaddleText'),
|
||||||
value: 5,
|
value: 5,
|
||||||
notes: t('foodSaddleNotes'),
|
notes: t('foodSaddleNotes'),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue