mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-23 14:17:05 +00:00
perf(pets): render food as bindonce (angular 1.3), see #3558
This commit is contained in:
parent
eb5d47f604
commit
8d49a4d032
1 changed files with 2 additions and 2 deletions
|
|
@ -93,7 +93,7 @@ script(type='text/ng-template', id='partials/options.inventory.pets.html')
|
|||
li.customize-menu
|
||||
menu.pets-menu(label=env.t('food'))
|
||||
div(ng-repeat='(food,points) in ownedItems(user.items.food)')
|
||||
button.customize-option(popover-append-to-body='true', popover='{{Content.food[food].notes()}}', popover-title='{{Content.food[food].text()}}', popover-trigger='mouseenter', popover-placement='left', ng-click='chooseFood(food)', class='Pet_Food_{{food}}')
|
||||
button.customize-option(popover-append-to-body='true', popover='{{:: Content.food[food].notes()}}', popover-title='{{:: Content.food[food].text()}}', popover-trigger='mouseenter', popover-placement='left', ng-click='chooseFood(food)', class='Pet_Food_{{::food}}')
|
||||
.badge.badge-info.stack-count {{points}}
|
||||
// Remove this once we have images in
|
||||
p {{Content.food[food].text()}}
|
||||
p {{:: Content.food[food].text()}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue