mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-23 23:13:18 -06:00
Update breadcrumb #1078
This commit is contained in:
parent
3cc1bf52cb
commit
ec2f693575
@ -44,7 +44,6 @@
|
||||
</td>
|
||||
<td>
|
||||
{{ journal|journalTotalAmount }}
|
||||
|
||||
</td>
|
||||
<td>
|
||||
{{ 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
|
||||
Breadcrumbs::register(
|
||||
'transactions.split.edit',
|
||||
|
Loading…
Reference in New Issue
Block a user