fix: uses paginate trait on download list

This commit is contained in:
2025-06-01 14:08:29 -05:00
parent 393e3ef41f
commit f2b50b4f60

View File

@@ -16,15 +16,11 @@ final class DownloadList extends AbstractController
{
use DefaultActionTrait;
use PaginateTrait;
#[LiveProp(writable: true)]
public string $type;
#[LiveProp(writable: true)]
public int $pageNumber = 1;
#[LiveProp(writable: true)]
public int $perPage = 5;
#[LiveProp(writable: true)]
public bool $isWidget = true;
@@ -42,10 +38,4 @@ final class DownloadList extends AbstractController
return [];
}
#[LiveAction]
public function paginate(#[LiveArg] int $page)
{
$this->pageNumber = $page;
}
}