mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 01:06:46 +00:00
Update version and API.
This commit is contained in:
@@ -118,9 +118,9 @@ class IndexController extends Controller
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Foundation\Application|Factory|View
|
||||
*/
|
||||
public function emptyIndex()
|
||||
public function emptyIndex(?string $objectType = null)
|
||||
{
|
||||
return view('accounts.empty-index');
|
||||
return view('accounts.empty-index', compact('objectType'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -133,6 +133,11 @@ class IndexController extends Controller
|
||||
*/
|
||||
public function index(Request $request, string $objectType)
|
||||
{
|
||||
// temp catch for layout.
|
||||
if ('v2' === config('firefly.layout')) {
|
||||
return $this->emptyIndex($objectType);
|
||||
}
|
||||
|
||||
$objectType = $objectType ?? 'asset';
|
||||
$subTitle = (string) trans(sprintf('firefly.%s_accounts', $objectType));
|
||||
$subTitleIcon = config(sprintf('firefly.subIconsByIdentifier.%s', $objectType));
|
||||
|
Reference in New Issue
Block a user