switch ng-show with ng-if

This commit is contained in:
MathWhiz
2016-07-20 19:02:54 -04:00
parent 8a2482e7d8
commit f11ca58526
3 changed files with 3 additions and 3 deletions
@@ -1,5 +1,5 @@
div(ng-show='user._id != profile._id')
h4
h4=env.t('activePet') / =env.t('activeMount')
table.table.table-striped
+basicRow('activePet', '{{::profile.items.currentPet ? (isBasicAnimal(profile.items.currentPet, \'pet\') ? env.t(\'petName\', {potion: Content.hatchingPotions[petPotion].text(), egg: Content.eggs[petEgg].text()}) : env.t(Content.specialPets[profile.items.currentPet])) : env.t(\'noActivePet\')}}')
+basicRow('activeMount', '{{::profile.items.currentMount ? (isBasicAnimal(profile.items.currentMount, \'mount\') ? env.t(\'mountName\', {potion: Content.hatchingPotions[mountPotion].text(), mount: Content.eggs[mountEgg].text()}) : env.t(Content.specialMounts[profile.items.currentMount])) : env.t(\'noActiveMount\')}}')
@@ -1,4 +1,4 @@
div(ng-show='profile.preferences.costume')
div(ng-if='profile.preferences.costume')
h4=env.t('costume')
table.table.table-striped
tr(ng-repeat='(itemType,costume) in profile.items.gear.costume', ng-init='piece=Content.gear.flat[costume]', ng-show='piece')
@@ -1,4 +1,4 @@
div(ng-show='profile.flags.dropsEnabled')
div(ng-if='profile.flags.dropsEnabled')
h4(class=mobile?'item item-divider':'')=env.t('pets')
table.table.table-striped