switch ng-show with ng-if
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user