Fix for 1231, show insight-url when is not default.

This commit is contained in:
ssotomayor 2014-10-14 15:31:23 -03:00
commit 8379f83c67
3 changed files with 11 additions and 0 deletions

View file

@ -10,6 +10,7 @@ angular.module('copayApp.controllers').controller('CreateController',
$scope.isMobile = !!window.cordova;
$scope.hideAdv = true;
$scope.networkName = config.networkName;
$scope.networkUrl = config.network[$scope.networkName].url;
// ng-repeat defined number of times instead of repeating over array?
$scope.getNumber = function(num) {
@ -31,6 +32,10 @@ angular.module('copayApp.controllers').controller('CreateController',
updateRCSelect(tc);
});
$scope.$watch('networkName', function(tc) {
$scope.networkUrl = config.network[$scope.networkName].url;
});
$scope.create = function(form) {
if (form && form.$invalid) {
notification.error('Error', 'Please enter the required fields');