Merge pull request #1040 from yemel/feature/improve-1-of-1

Remove Name field and copayer list on 1-of-1 wallets
This commit is contained in:
Gustavo Maximiliano Cortez 2014-08-05 10:29:46 -03:00
commit a5544d08db
8 changed files with 25 additions and 9 deletions

View file

@ -50,7 +50,7 @@ angular.module('copayApp.controllers').controller('SendController',
var w = $rootScope.wallet;
w.createTx(address, amount, commentText, function(ntxid) {
if (w.totalCopayers > 1) {
if (w.isShared()) {
$scope.loading = false;
var message = 'The transaction proposal has been created';
notification.success('Success!', message);

View file

@ -913,6 +913,10 @@ Wallet.prototype.toggleAddressBookEntry = function(key) {
this.store();
};
Wallet.prototype.isShared = function() {
return this.totalCopayers > 1;
}
Wallet.prototype.isReady = function() {
var ret = this.publicKeyRing.isComplete() && this.publicKeyRing.isFullyBackup();
return ret;