fix bugs when you have 0 wallets

This commit is contained in:
bechi 2015-01-16 17:03:42 -03:00
parent 373f12c2a0
commit 247fb41a90
2 changed files with 17 additions and 12 deletions

View File

@ -1335,7 +1335,7 @@ input.ng-invalid-match, input.ng-invalid-match:focus {
.black { .black {
background-color: #2C3E50; background-color: #2C3E50;
} }
.text-italic {font-style: italic;}
.text-light {font-weight: 100;} .text-light {font-weight: 100;}
.text-bold {font-weight: 700;} .text-bold {font-weight: 700;}
.text-gray {color: #8597A7;} .text-gray {color: #8597A7;}

View File

@ -1,17 +1,22 @@
<div ng-init="init()"> <div ng-init="init()">
<header ng-show="$root.wallet"> <header>
<div class="col1"> <div class="left p15" ng-show="!$root.wallet">
<div class="avatar-wallet">{{$root.wallet.getName() | limitTo: 1}}</div> <span class="db m5t text-italic">You have no wallets</span>
</div> </div>
<div class="col2" ng-class="{'col2_full':!wallets.length}"> <div ng-show="$root.wallet">
<div class="oh m5t m10r"> <div class="col1">
<div class="name-wallet"> <div class="avatar-wallet">{{$root.wallet.getName() | limitTo: 1}}</div>
<div class="ellipsis">{{$root.wallet.getName()}}</div> </div>
</div> <div class="col2" ng-class="{'col2_full':!wallets.length}">
<div class="size-12"> {{$root.wallet.requiredCopayers}} of {{$root.wallet.totalCopayers}} </div> <div class="oh m5t m10r">
<div class="name-wallet">
<div class="ellipsis">{{$root.wallet.getName()}}</div>
</div>
<div class="size-12"> {{$root.wallet.requiredCopayers}} of {{$root.wallet.totalCopayers}} </div>
</div>
</div> </div>
</div> </div>
<div class="col3" ng-if="wallets.length > 1"> <div class="col3">
<a ng-class="{'selected':walletSelection}" <a ng-class="{'selected':walletSelection}"
ng-click="toggleWalletSelection()"> ng-click="toggleWalletSelection()">
<span ng-show="!walletSelection"> <span ng-show="!walletSelection">
@ -25,7 +30,7 @@
</header> </header>
<div> <div>
<ul class="side-nav wallets" ng-class="{'pullDown': walletSelection}" ng-show="wallets[0]"> <ul class="side-nav wallets" ng-class="{'pullDown': walletSelection}">
<li <li
ng-repeat="item in wallets track by $index" ng-repeat="item in wallets track by $index"
class="nav-item" class="nav-item"