better wallet order

This commit is contained in:
Matias Alejo Garcia 2016-08-25 18:13:20 -03:00
parent 3db1a02bc3
commit db9750b263
No known key found for this signature in database
GPG Key ID: 02470DB551277AB3
5 changed files with 7 additions and 6 deletions

View File

@ -68,7 +68,7 @@
</div>
<div class="text-center">
<button class="tiny round outline dark-gray warning" ng-click="showDeletePopup()">
<button class="button button-block button-assertive" ng-click="showDeletePopup()">
<i class="fi-trash"></i> <span translate>Cancel and delete the wallet</span>
</button>
</div>

View File

@ -29,6 +29,7 @@
<div class="item-note">
<!-- {{x.types}} -->
&middot;
<i class="ion-briefcase" ng-style="{'color':x.wallet.color}"></i>

View File

@ -48,7 +48,7 @@
ui-sref="wallet.details({'walletId': item.id})">
<i class="icon ion-briefcase size-21" ng-style="{'color':item.color}"></i>
{{item.name || item.id}}
<span ng-show="item.n > 1" class="text-gray">
<span ng-show="item.n > 1" class="text-light">
{{item.m}}-of-{{item.n}}
</span>
<span class="badge badge-assertive" ng-show="!item.isComplete()" translate>

View File

@ -23,9 +23,8 @@
<div ng-show="!wallet.isComplete()">
Wallet Incomplete.
<a href ui-sref="wallet.copayers" class="button">
Wait for Copayers
<a class="button button-block button-assertive" href ui-sref="wallet.copayers" class="button">
Wallet Incomplete
</a>
</div>

View File

@ -716,9 +716,10 @@ angular.module('copayApp.services')
ret = lodash.filter(ret, function(w) {
return w.isComplete();
});
} else {
}
return lodash.sortBy(ret, 'name');
return lodash.sortBy(ret, [ function(x) { return x.isComplete(); }, 'createdOn', 'name']);
};
return root;