Better error handling

This commit is contained in:
James Cole 2024-02-26 19:54:45 +01:00
parent cd713dc40f
commit 7103098fe7
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
2 changed files with 6 additions and 0 deletions

View File

@ -746,6 +746,10 @@ export default {
case 'budget_id':
case 'bill_id':
case 'description':
case 'type':
this.transactions[transactionIndex].errors.source_account = [this.$t('firefly.select_source_account')];
this.transactions[transactionIndex].errors.destination_account = [this.$t('firefly.select_dest_account')];
break;
case 'tags':
this.transactions[transactionIndex].errors[fieldName] = errors.errors[key];
break;

View File

@ -1541,6 +1541,8 @@ return [
'submission_options' => 'Submission options',
'apply_rules_checkbox' => 'Apply rules',
'fire_webhooks_checkbox' => 'Fire webhooks',
'select_source_account' => 'Please select or type a valid source account name',
'select_dest_account' => 'Please select or type a valid destination account name',
// convert stuff:
'convert_is_already_type_Withdrawal' => 'This transaction is already a withdrawal',