Splits creating personal and multisign wallets
This commit is contained in:
parent
58cc46de60
commit
ce0a7584b3
2 changed files with 21 additions and 8 deletions
|
|
@ -29,18 +29,19 @@ angular.module('copayApp.controllers').controller('createController',
|
|||
}
|
||||
|
||||
var updateRCSelect = function(n) {
|
||||
$scope.totalCopayers = n;
|
||||
var maxReq = COPAYER_PAIR_LIMITS[n];
|
||||
self.RCValues = lodash.range(1, maxReq + 1);
|
||||
$scope.requiredCopayers = Math.min(parseInt(n / 2 + 1), maxReq);
|
||||
};
|
||||
|
||||
$scope.$watch('totalCopayers', function(tc) {
|
||||
updateRCSelect(tc);
|
||||
});
|
||||
|
||||
this.TCValues = lodash.range(1, defaults.limits.totalCopayers + 1);
|
||||
this.TCValues = lodash.range(2, defaults.limits.totalCopayers + 1);
|
||||
$scope.totalCopayers = defaults.wallet.totalCopayers;
|
||||
|
||||
this.setTotalCopayers = function(tc) {
|
||||
updateRCSelect(tc);
|
||||
};
|
||||
|
||||
this.create = function(form) {
|
||||
if (form && form.$invalid) {
|
||||
this.error = gettext('Please enter the required fields');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue