mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
Add behaviour specific to the buy-gems popup.
This commit is contained in:
parent
0754b58cc2
commit
0cfb705762
2 changed files with 4 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
|||
mixin gemButton(isGemsModal)
|
||||
a.pull-right.gem-wallet(ng-click='openModal("buyGems",{track:"Gems > Wallet"})', popover-trigger='mouseenter', popover-title=env.t('gems'), popover=env.t('gemsWhatFor'), popover-placement='bottom')
|
||||
span.task-action-btn.tile.flush.bright.add-gems-btn +
|
||||
a.pull-right.gem-wallet(ng-click=( isGemsModal ? '' : 'openModal("buyGems",{track:"Gems > Wallet"})'), popover-trigger='mouseenter', popover-title=env.t('gems'), popover=env.t('gemsWhatFor'), popover-placement='bottom')
|
||||
if !isGemsModal
|
||||
span.task-action-btn.tile.flush.bright.add-gems-btn +
|
||||
span.task-action-btn.tile.flush.neutral
|
||||
.Pet_Currency_Gem2x.Gems
|
||||
| {{user.balance * 4 | number:0}}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
script(id='modals/buyGems.html', type='text/ng-template')
|
||||
.modal-body
|
||||
.buy-gems
|
||||
+gemButton
|
||||
+gemButton(true)
|
||||
.well
|
||||
h3=env.t('buyGems')
|
||||
table.table
|
||||
|
|
|
|||
Loading…
Reference in a new issue