mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 04:03:26 +00:00
Disable layout caches.
This commit is contained in:
@@ -116,14 +116,6 @@ class IndexController extends Controller
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Foundation\Application|Factory|View
|
||||
*/
|
||||
public function emptyIndex(?string $objectType = null)
|
||||
{
|
||||
return view('accounts.empty-index', compact('objectType'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Show list of accounts.
|
||||
*
|
||||
@@ -135,11 +127,6 @@ class IndexController extends Controller
|
||||
*/
|
||||
public function index(Request $request, string $objectType)
|
||||
{
|
||||
// temp catch for layout.
|
||||
if ('v2' === config('firefly.layout')) {
|
||||
return $this->emptyIndex($objectType);
|
||||
}
|
||||
|
||||
// reset account order:
|
||||
|
||||
$objectType = $objectType ?? 'asset';
|
||||
|
@@ -92,11 +92,6 @@ class ShowController extends Controller
|
||||
{
|
||||
$objectType = config(sprintf('firefly.shortNamesByFullName.%s', $account->accountType->type));
|
||||
|
||||
// temp catch for layout.
|
||||
if ('v2' === config('firefly.layout')) {
|
||||
return view('accounts.empty-index', compact('objectType'));
|
||||
}
|
||||
|
||||
if (!$this->isEditableAccount($account)) {
|
||||
return $this->redirectAccountToAccount($account); // @codeCoverageIgnore
|
||||
}
|
||||
|
Reference in New Issue
Block a user