rm focusedClient
This commit is contained in:
parent
a702b6e77e
commit
d4f39abc9a
9 changed files with 102 additions and 147 deletions
|
|
@ -24,9 +24,11 @@ angular.module('copayApp.directives')
|
|||
var URI = bitcore.URI;
|
||||
var Address = bitcore.Address
|
||||
var validator = function(value) {
|
||||
if (!profileService.focusedClient)
|
||||
return;
|
||||
var networkName = profileService.focusedClient.credentials.network;
|
||||
var networkName = attrs.networkName;
|
||||
|
||||
if (!networkName)
|
||||
throw 'validAddress should provide network name';
|
||||
|
||||
// Regular url
|
||||
if (/^https?:\/\//.test(value)) {
|
||||
ctrl.$setValidity('validAddress', true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue