fix send payments to destination address without backup
This commit is contained in:
parent
ec8c9c08af
commit
3c7012902e
2 changed files with 11 additions and 13 deletions
|
|
@ -394,7 +394,11 @@
|
||||||
<i class="icon-close-circle size-14"></i>
|
<i class="icon-close-circle size-14"></i>
|
||||||
<span class="vm" translate>Not valid</span>
|
<span class="vm" translate>Not valid</span>
|
||||||
</span>
|
</span>
|
||||||
<small class="right text-primary" ng-show="!sendForm.address.$invalid">
|
<span class="has-error right size-12" ng-show="home.destinationAddressNeedsBackup">
|
||||||
|
<i class="icon-close-circle size-14"></i>
|
||||||
|
<span class="vm" translate>Destination address needs backup</span>
|
||||||
|
</span>
|
||||||
|
<small class="right text-primary" ng-show="!sendForm.address.$invalid && !home.destinationAddressNeedsBackup">
|
||||||
<i class="icon-checkmark-circle size-14"></i>
|
<i class="icon-checkmark-circle size-14"></i>
|
||||||
</small>
|
</small>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
ret.isWindowsPhoneApp = isMobile.Windows() && isCordova;
|
ret.isWindowsPhoneApp = isMobile.Windows() && isCordova;
|
||||||
var vanillaScope = ret;
|
var vanillaScope = ret;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var disableScannerListener = $rootScope.$on('dataScanned', function(event, data) {
|
var disableScannerListener = $rootScope.$on('dataScanned', function(event, data) {
|
||||||
self.setForm(data);
|
self.setForm(data);
|
||||||
$rootScope.$emit('Local/SetTab', 'send');
|
$rootScope.$emit('Local/SetTab', 'send');
|
||||||
|
|
@ -94,8 +92,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
$rootScope.shouldHideMenuBar = false;
|
$rootScope.shouldHideMenuBar = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.onQrCodeScanned = function(data) {
|
this.onQrCodeScanned = function(data) {
|
||||||
if (data) go.send();
|
if (data) go.send();
|
||||||
$rootScope.$emit('dataScanned', data);
|
$rootScope.$emit('dataScanned', data);
|
||||||
|
|
@ -984,11 +980,9 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.resetForm = function() {
|
this.resetForm = function() {
|
||||||
this.resetError();
|
this.resetError();
|
||||||
this.paymentExpired = false;
|
this.destinationWalletNeedsBackup = null;
|
||||||
this._paypro = null;
|
this._paypro = null;
|
||||||
this.lockedCurrentFeePerKb = null;
|
this.lockedCurrentFeePerKb = null;
|
||||||
|
|
||||||
|
|
@ -1130,7 +1124,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
self._paypro = null;
|
self._paypro = null;
|
||||||
self.error = gettext('Cannot sign: The payment request has expired');
|
self.error = gettext('Cannot sign: The payment request has expired');
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
this.setFromUri = function(uri) {
|
this.setFromUri = function(uri) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue