Add a button to go back to the v1 layout.

This commit is contained in:
James Cole
2024-03-05 19:38:45 +01:00
parent a5b15bbc16
commit 3a339382d4
8 changed files with 64 additions and 67 deletions

View File

@@ -252,10 +252,8 @@ class AccountRepository implements AccountRepositoryInterface
}
}
/**
* @inheritDoc
*/
#[\Override] public function getAccountsInOrder(array $types, array $sort, int $startRow, int $endRow): Collection
#[\Override]
public function getAccountsInOrder(array $types, array $sort, int $startRow, int $endRow): Collection
{
$query = $this->userGroup->accounts();
if (0 !== count($types)) {
@@ -280,12 +278,14 @@ class AccountRepository implements AccountRepositoryInterface
return $query->get(['accounts.*']);
}
#[\Override] public function countAccounts(array $types): int
#[\Override]
public function countAccounts(array $types): int
{
$query = $this->userGroup->accounts();
if (0 !== count($types)) {
$query->accountTypeIn($types);
}
return $query->count();
}
}

View File

@@ -53,15 +53,8 @@ interface AccountRepositoryInterface
/**
* Used in the infinite accounts list.
*
* @param array $types
* @param array $sort
* @param int $startRow
* @param int $endRow
*
* @return Collection
*/
public function getAccountsInOrder(array $types, array $sort, int $startRow, int $endRow): Collection;
public function getAccountsInOrder(array $types, array $sort, int $startRow, int $endRow): Collection;
public function getActiveAccountsByType(array $types): Collection;