mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-16 22:58:09 +00:00
Make it easier to switch between v1/v2 layout.
This commit is contained in:
@@ -158,7 +158,7 @@ class CreateController extends Controller
|
||||
|
||||
$request->session()->flash('preFilled', $preFilled);
|
||||
|
||||
return view(
|
||||
return prefixView(
|
||||
'recurring.create',
|
||||
compact('tomorrow', 'oldRepetitionType', 'weekendResponses', 'preFilled', 'repetitionEnds', 'defaultCurrency', 'budgets')
|
||||
);
|
||||
@@ -206,7 +206,7 @@ class CreateController extends Controller
|
||||
];
|
||||
$request->session()->flash('preFilled', $preFilled);
|
||||
|
||||
return view(
|
||||
return prefixView(
|
||||
'recurring.create',
|
||||
compact('tomorrow', 'oldRepetitionType', 'weekendResponses', 'preFilled', 'repetitionEnds', 'defaultCurrency', 'budgets')
|
||||
);
|
||||
|
||||
@@ -78,7 +78,7 @@ class DeleteController extends Controller
|
||||
|
||||
$journalsCreated = $this->recurring->getTransactions($recurrence)->count();
|
||||
|
||||
return view('recurring.delete', compact('recurrence', 'subTitle', 'journalsCreated'));
|
||||
return prefixView('recurring.delete', compact('recurrence', 'subTitle', 'journalsCreated'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -137,7 +137,7 @@ class EditController extends Controller
|
||||
|
||||
$array['transactions'][0]['tags'] = implode(',', $array['transactions'][0]['tags'] ?? []);
|
||||
|
||||
return view(
|
||||
return prefixView(
|
||||
'recurring.edit',
|
||||
compact('recurrence', 'array', 'weekendResponses', 'budgets', 'preFilled', 'currentRepType', 'repetitionEnd', 'repetitionEnds')
|
||||
);
|
||||
|
||||
@@ -125,7 +125,7 @@ class IndexController extends Controller
|
||||
|
||||
$this->verifyRecurringCronJob();
|
||||
|
||||
return view('recurring.index', compact('paginator', 'today', 'page', 'pageSize', 'total'));
|
||||
return prefixView('recurring.index', compact('paginator', 'today', 'page', 'pageSize', 'total'));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -96,6 +96,6 @@ class ShowController extends Controller
|
||||
|
||||
$subTitle = (string) trans('firefly.overview_for_recurrence', ['title' => $recurrence->title]);
|
||||
|
||||
return view('recurring.show', compact('recurrence', 'subTitle', 'array', 'groups','today'));
|
||||
return prefixView('recurring.show', compact('recurrence', 'subTitle', 'array', 'groups','today'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user