mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 17:33:45 +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.
|
* Show list of accounts.
|
||||||
*
|
*
|
||||||
@@ -135,11 +127,6 @@ class IndexController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function index(Request $request, string $objectType)
|
public function index(Request $request, string $objectType)
|
||||||
{
|
{
|
||||||
// temp catch for layout.
|
|
||||||
if ('v2' === config('firefly.layout')) {
|
|
||||||
return $this->emptyIndex($objectType);
|
|
||||||
}
|
|
||||||
|
|
||||||
// reset account order:
|
// reset account order:
|
||||||
|
|
||||||
$objectType = $objectType ?? 'asset';
|
$objectType = $objectType ?? 'asset';
|
||||||
|
@@ -92,11 +92,6 @@ class ShowController extends Controller
|
|||||||
{
|
{
|
||||||
$objectType = config(sprintf('firefly.shortNamesByFullName.%s', $account->accountType->type));
|
$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)) {
|
if (!$this->isEditableAccount($account)) {
|
||||||
return $this->redirectAccountToAccount($account); // @codeCoverageIgnore
|
return $this->redirectAccountToAccount($account); // @codeCoverageIgnore
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user