This commit is contained in:
James Cole 2019-09-07 19:46:16 +02:00
parent 1c68b0902d
commit cb7a4fedf7
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
3 changed files with 4 additions and 7 deletions

View File

@ -107,9 +107,6 @@ class AccountValidator
return false;
}
// whatever happens, source cannot equal destination:
switch ($this->transactionType) {
default:
$this->destError = sprintf('AccountValidator::validateDestination cannot handle "%s", so it will always return false.', $this->transactionType);

2
public/v1/js/app.js vendored

File diff suppressed because one or more lines are too long

View File

@ -131,20 +131,20 @@
}
this.inputDisabled = false;
if (this.transactionType.toString() !== '' && this.index > 0) {
if (this.transactionType.toString() === 'Transfer') {
if (this.transactionType.toString().toLowerCase() === 'transfer') {
this.inputDisabled = true;
// todo: needs to copy value from very first input
return;
}
if (this.transactionType.toString() === 'Withdrawal' && this.inputName.substr(0, 6).toLowerCase() === 'source') {
if (this.transactionType.toString().toLowerCase() === 'withdrawal' && this.inputName.substr(0, 6).toLowerCase() === 'source') {
// todo also clear value?
this.inputDisabled = true;
return;
}
if (this.transactionType.toString() === 'Deposit' && this.inputName.substr(0, 11).toLowerCase() === 'destination') {
if (this.transactionType.toString().toLowerCase() === 'deposit' && this.inputName.substr(0, 11).toLowerCase() === 'destination') {
// todo also clear value?
this.inputDisabled = true;
}