Fix glidera ux and hide button if not have transaction permissions

This commit is contained in:
Gustavo Maximiliano Cortez 2015-10-21 11:25:44 -03:00
parent 652cc6ab05
commit 3ce46d195c
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
2 changed files with 8 additions and 8 deletions

View File

@ -146,10 +146,11 @@
</div>
</div>
<ul class="no-bullet m0 size-14">
<li ng-show="index.glideraPermissions.transact &&
(index.glideraStatus.userCanBuy || index.glideraStatus.userCanTransact)" class="line-b line-t p20 pointer"
ng-click="$root.go('buyGlidera')">
<ul class="no-bullet m0 size-14"
ng-show="index.glideraStatus && index.glideraPermissions.transact && (index.glideraStatus.userBankAccountIsSetup && index.glideraStatus.bankAccountState == 'VERIFIED')">
<li ng-show="index.glideraStatus.userCanTransact && index.glideraStatus.userCanBuy"
class="line-b line-t p20 pointer"
ng-click="$root.go('buyGlidera')">
<img src="img/buy-bitcoin.svg" alt="buy bitcoin" width="40">
<span class="m10 text-normal text-bold">Buy Bitcoin</span>
<span class="right text-gray">
@ -157,9 +158,8 @@
</span>
</li>
<li class="line-b p20 pointer"
ng-show="index.glideraPermissions.transact &&
(index.glideraStatus.userCanSell || index.glideraStatus.userCanTransact)"
ng-click="$root.go('sellGlidera')">
ng-show="index.glideraStatus.userCanTransact && index.glideraStatus.userCanSell"
ng-click="$root.go('sellGlidera')">
<img src="img/sell-bitcoin.svg" alt="buy bitcoin" width="40">
<span class="m10 text-normal text-bold">Sell Bitcoin</span>
<span class="right text-gray">

View File

@ -5,7 +5,6 @@
</div>
<div class="content preferences" ng-controller="preferencesGlideraController as glidera">
<h4></h4>
<ul ng-if="index.glideraToken" class="no-bullet m0">
<h4 class="title m0">Permissions</h4>
@ -261,6 +260,7 @@
<span class="text-warning">Log out</span>
</li>
</ul>
<h4></h4>
</div>
<div class="extra-margin-bottom"></div>