mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-13 16:00:13 +00:00
Update breadcrumb #1078
This commit is contained in:
@@ -44,7 +44,6 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ journal|journalTotalAmount }}
|
{{ journal|journalTotalAmount }}
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ journal.date.formatLocalized(monthAndDayFormat) }}
|
{{ journal.date.formatLocalized(monthAndDayFormat) }}
|
||||||
|
@@ -990,6 +990,25 @@ Breadcrumbs::register(
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// BULK EDIT
|
||||||
|
Breadcrumbs::register(
|
||||||
|
'transactions.bulk.edit',
|
||||||
|
function (BreadCrumbsGenerator $breadcrumbs, Collection $journals): void {
|
||||||
|
if ($journals->count() > 0) {
|
||||||
|
$journalIds = $journals->pluck('id')->toArray();
|
||||||
|
$what = strtolower($journals->first()->transactionType->type);
|
||||||
|
$breadcrumbs->parent('transactions.index', $what, '(nothing)', new Carbon, new Carbon);
|
||||||
|
$breadcrumbs->push(trans('firefly.mass_bulk_journals'), route('transactions.bulk.edit', $journalIds));
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$breadcrumbs->parent('index');
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
// SPLIT
|
// SPLIT
|
||||||
Breadcrumbs::register(
|
Breadcrumbs::register(
|
||||||
'transactions.split.edit',
|
'transactions.split.edit',
|
||||||
|
Reference in New Issue
Block a user