fix toggle switch on create wallet

This commit is contained in:
Javier 2016-05-19 18:18:05 -03:00
commit 453b129892
3 changed files with 16 additions and 8 deletions

View file

@ -152,10 +152,11 @@
<input type="text" class="form-control" name="derivationPath" ng-model="derivationPath"> <input type="text" class="form-control" name="derivationPath" ng-model="derivationPath">
</label> </label>
</div> </div>
<div class="oh" ng-show="create.seedSourceId == 'new'"> <div class="oh" ng-show="create.seedSourceId == 'new'">
<label for="network-name" > <label for="network-name" class="dbi">
<span>Testnet</span> <span>Testnet</span>
<switch id="network-name" name="isTestnet" ng-model="isTestnet" class="green right m5t m10b"></switch> <ion-toggle ng-model="testnetEnabled" toggle-class="toggle-balanced" class="bct">
</ion-toggle>
</label> </label>
</div> </div>
</div> <!-- columns --> </div> <!-- columns -->

View file

@ -16,6 +16,14 @@
display: inherit; display: inherit;
} }
.bct {
background-color: transparent !important;
margin-top: -25px;
padding-bottom: 30px;
right: -27px !important;
border-width: 0px;
}
.item-toggle .toggle { .item-toggle .toggle {
right: 28px; right: 28px;
} }

View file

@ -79,7 +79,6 @@ angular.module('copayApp.controllers').controller('createController',
self.seedSourceId = $scope.seedSource.id; self.seedSourceId = $scope.seedSource.id;
}; };
this.setSeedSource = function(src) { this.setSeedSource = function(src) {
self.seedSourceId = $scope.seedSource.id; self.seedSourceId = $scope.seedSource.id;
@ -99,7 +98,7 @@ angular.module('copayApp.controllers').controller('createController',
n: $scope.totalCopayers, n: $scope.totalCopayers,
name: $scope.walletName, name: $scope.walletName,
myName: $scope.totalCopayers > 1 ? $scope.myName : null, myName: $scope.totalCopayers > 1 ? $scope.myName : null,
networkName: $scope.isTestnet ? 'testnet' : 'livenet', networkName: $scope.testnetEnabled ? 'testnet' : 'livenet',
bwsurl: $scope.bwsurl, bwsurl: $scope.bwsurl,
walletPrivKey: $scope._walletPrivKey, // Only for testing walletPrivKey: $scope._walletPrivKey, // Only for testing
}; };
@ -140,7 +139,7 @@ angular.module('copayApp.controllers').controller('createController',
return; return;
} }
if ( self.seedSourceId == 'trezor') if (self.seedSourceId == 'trezor')
account = account - 1; account = account - 1;
opts.account = account; opts.account = account;
@ -183,8 +182,8 @@ angular.module('copayApp.controllers').controller('createController',
}, 100); }, 100);
} }
function scrollUp(location){ function scrollUp(location) {
if(!location) return; if (!location) return;
$location.hash(location); $location.hash(location);
$anchorScroll(); $anchorScroll();
}; };