fix: limits active download list to 5 items

This commit is contained in:
2025-05-12 16:33:47 -05:00
parent eed2e70d21
commit 6ad10a585d
4 changed files with 54 additions and 8 deletions

View File

@@ -3,11 +3,14 @@
namespace App\Twig\Components;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;
use Symfony\UX\LiveComponent\Attribute\AsLiveComponent;
use Symfony\UX\LiveComponent\DefaultActionTrait;
#[AsTwigComponent]
#[AsLiveComponent]
final class DownloadList extends AbstractController
{
use DefaultActionTrait;
public string $type;
public function getDownloads()