Add function showNetwork()

This commit is contained in:
ssotomayor 2014-10-14 15:33:52 -03:00
commit 152d4b1eb6

View file

@ -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');