Disable layout caches.

This commit is contained in:
James Cole
2020-08-27 06:18:47 +02:00
parent 412b169e3a
commit 483e7256f7
2 changed files with 0 additions and 18 deletions

View File

@@ -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';

View File

@@ -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
}