Add function showNetwork()
This commit is contained in:
parent
8379f83c67
commit
152d4b1eb6
1 changed files with 4 additions and 0 deletions
|
|
@ -36,6 +36,10 @@ angular.module('copayApp.controllers').controller('CreateController',
|
|||
$scope.networkUrl = config.network[$scope.networkName].url;
|
||||
});
|
||||
|
||||
$scope.showNetwork = function(){
|
||||
return $scope.networkUrl != defaults.livenetUrl && $scope.networkUrl != defaults.testnetUrl;
|
||||
};
|
||||
|
||||
$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