Conflicts fixed
This commit is contained in:
parent
ce95cb264d
commit
de43990882
3 changed files with 22 additions and 5 deletions
|
|
@ -6,17 +6,16 @@ var bignum = bitcore.Bignum;
|
||||||
var preconditions = require('preconditions').singleton();
|
var preconditions = require('preconditions').singleton();
|
||||||
|
|
||||||
angular.module('copayApp.directives')
|
angular.module('copayApp.directives')
|
||||||
.directive('validAddress', ['$rootScope', function($rootScope) {
|
|
||||||
|
|
||||||
|
.directive('validAddress', ['$rootScope',
|
||||||
|
function($rootScope) {
|
||||||
return {
|
return {
|
||||||
require: 'ngModel',
|
require: 'ngModel',
|
||||||
link: function(scope, elem, attrs, ctrl) {
|
link: function(scope, elem, attrs, ctrl) {
|
||||||
var validator = function(value) {
|
var validator = function(value) {
|
||||||
|
|
||||||
// If we're setting the domain, ignore the change.
|
// If we're setting the domain, ignore the change.
|
||||||
if ($rootScope.merchant
|
if ($rootScope.merchant && $rootScope.merchant.domain && value === $rootScope.merchant.domain) {
|
||||||
&& $rootScope.merchant.domain
|
|
||||||
&& value === $rootScope.merchant.domain) {
|
|
||||||
ctrl.$setValidity('validAddress', true);
|
ctrl.$setValidity('validAddress', true);
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
@ -27,6 +26,7 @@ angular.module('copayApp.directives')
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Bip21 uri
|
// Bip21 uri
|
||||||
if (/^bitcoin:/.test(value)) {
|
if (/^bitcoin:/.test(value)) {
|
||||||
var uri = new bitcore.BIP21(value);
|
var uri = new bitcore.BIP21(value);
|
||||||
|
|
@ -41,11 +41,13 @@ angular.module('copayApp.directives')
|
||||||
return value;
|
return value;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
ctrl.$parsers.unshift(validator);
|
ctrl.$parsers.unshift(validator);
|
||||||
ctrl.$formatters.unshift(validator);
|
ctrl.$formatters.unshift(validator);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}])
|
}
|
||||||
|
])
|
||||||
.directive('enoughAmount', ['$rootScope',
|
.directive('enoughAmount', ['$rootScope',
|
||||||
function($rootScope) {
|
function($rootScope) {
|
||||||
var w = $rootScope.wallet;
|
var w = $rootScope.wallet;
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@
|
||||||
<input id="walletPassword" type="password" placeholder="{{'Choose your password'|translate}}" class="form-control" ng-model="$parent.walletPassword" name="walletPassword" check-strength="passwordStrength" tooltip-html-unsafe="Password strength:
|
<input id="walletPassword" type="password" placeholder="{{'Choose your password'|translate}}" class="form-control" ng-model="$parent.walletPassword" name="walletPassword" check-strength="passwordStrength" tooltip-html-unsafe="Password strength:
|
||||||
<i>{{passwordStrength}}</i><br/><span
|
<i>{{passwordStrength}}</i><br/><span
|
||||||
class='size-12'>Tip: Use lower and uppercase, numbers and
|
class='size-12'>Tip: Use lower and uppercase, numbers and
|
||||||
|
<<<<<<< HEAD
|
||||||
symbols</span>" tooltip-trigger="focus" required tooltip-placement="top">
|
symbols</span>" tooltip-trigger="focus" required tooltip-placement="top">
|
||||||
|
|
||||||
<input type="password" placeholder="{{'Repeat password'|translate}}" name="walletPasswordConfirm" ng-model="walletPasswordConfirm" match="walletPassword" required>
|
<input type="password" placeholder="{{'Repeat password'|translate}}" name="walletPasswordConfirm" ng-model="walletPasswordConfirm" match="walletPassword" required>
|
||||||
|
|
@ -38,6 +39,19 @@
|
||||||
<input id="network-name" type="checkbox" ng-model="networkName" ng-true-value="testnet" ng-false-value="livenet" class="form-control" ng-click="changeNetwork()" ng-checked="networkName == 'testnet' ? true : false">
|
<input id="network-name" type="checkbox" ng-model="networkName" ng-true-value="testnet" ng-false-value="livenet" class="form-control" ng-click="changeNetwork()" ng-checked="networkName == 'testnet' ? true : false">
|
||||||
<label for="network-name">Use test network</label>
|
<label for="network-name">Use test network</label>
|
||||||
</div>
|
</div>
|
||||||
|
=======
|
||||||
|
symbols</span>"
|
||||||
|
tooltip-trigger="focus" required
|
||||||
|
tooltip-placement="top">
|
||||||
|
|
||||||
|
<small translate class="is-valid" ng-show="setupForm.walletPasswordConfirm.$dirty && setupForm.$invalid">Please enter the same password you entered above</small>
|
||||||
|
<input type="password"
|
||||||
|
placeholder="{{'Repeat password'|translate}}"
|
||||||
|
name="walletPasswordConfirm"
|
||||||
|
ng-model="walletPasswordConfirm"
|
||||||
|
match="walletPassword"
|
||||||
|
required>
|
||||||
|
>>>>>>> Fixed
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a class="expand small" ng-click="hideAdv=!hideAdv">
|
<a class="expand small" ng-click="hideAdv=!hideAdv">
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,7 @@
|
||||||
numbers and symbols</span>" tooltip-trigger="focus"
|
numbers and symbols</span>" tooltip-trigger="focus"
|
||||||
tooltip-placement="top" required>
|
tooltip-placement="top" required>
|
||||||
|
|
||||||
|
<small translate class="is-valid" ng-show="joinForm.joinPasswordConfirm.$dirty && joinForm.$invalid">Please enter the same password you entered above</small>
|
||||||
<input type="password"
|
<input type="password"
|
||||||
placeholder="{{'Repeat password'|translate}}"
|
placeholder="{{'Repeat password'|translate}}"
|
||||||
name="joinPasswordConfirm"
|
name="joinPasswordConfirm"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue