Skip to content

Firefly III: a personal finances manager

Some bread crumbs and stuff [skip ci]

James Colef2cf0ed446d3
diff --git a/app/Http/breadcrumbs.php b/app/Http/breadcrumbs.php
index a988150c12..424c2857cf 100644
--- a/app/Http/breadcrumbs.php
+++ b/app/Http/breadcrumbs.php
@@ -871,6 +871,16 @@ Breadcrumbs::register(
$breadcrumbs->push(trans('breadcrumbs.edit_journal', ['description' => $journal->description]), route('transactions.edit', [$journal->id]));
}
);
+
+// also edit reconciliations:
+Breadcrumbs::register(
+ 'accounts.reconcile.edit',
+ function (BreadCrumbGenerator $breadcrumbs, TransactionJournal $journal) {
+ $breadcrumbs->parent('transactions.show', $journal);
+ $breadcrumbs->push(trans('breadcrumbs.edit_reconciliation', ['description' => $journal->description]), route('accounts.reconcile.edit', [$journal->id]));
+ }
+);
+
Breadcrumbs::register(
'transactions.delete',
function (BreadCrumbGenerator $breadcrumbs, TransactionJournal $journal) {
diff --git a/resources/lang/en_US/breadcrumbs.php b/resources/lang/en_US/breadcrumbs.php
index 0be3587f3c..be62acdc7a 100644
--- a/resources/lang/en_US/breadcrumbs.php
+++ b/resources/lang/en_US/breadcrumbs.php
@@ -31,10 +31,12 @@ return [
'deposit_list' => 'Revenue, income and deposits',
'transfer_list' => 'Transfers',
'transfers_list' => 'Transfers',
+ 'reconciliation_list' => 'Reconciliations',
'create_withdrawal' => 'Create new withdrawal',
'create_deposit' => 'Create new deposit',
'create_transfer' => 'Create new transfer',
'edit_journal' => 'Edit transaction ":description"',
+ 'edit_reconciliation' => 'Edit ":description"',
'delete_journal' => 'Delete transaction ":description"',
'tags' => 'Tags',
'createTag' => 'Create new tag',
diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php
index 3ef62e90a1..718e80e255 100644
--- a/resources/lang/en_US/firefly.php
+++ b/resources/lang/en_US/firefly.php
@@ -621,6 +621,7 @@ return [
'cash_accounts' => 'Cash accounts',
'Cash account' => 'Cash account',
'reconcile_account' => 'Reconcile account ":account"',
+ 'delete_reconciliation' => 'Delete reconciliation',
'update_reconciliation' => 'Update reconciliation',
'amount_cannot_be_zero' => 'The amount cannot be zero',
'end_of_reconcile_period' => 'End of reconcile period: :period',