Fix for 1231, show insight-url when is not default.
This commit is contained in:
parent
4741f12060
commit
8379f83c67
3 changed files with 11 additions and 0 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue