feat(schedules): add 'select all N' across pages
- Add GetAllScheduleIdsAction + GetFilteredScheduleIdsTask - Add GET /dashboard/schedules/all-ids route returning filtered IDs - Add selectAllFiltered method to Index.vue - Button 'Выбрать все N' appears when total > per-page count
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Containers\Dashboard\Actions\Schedules;
|
||||
|
||||
use App\Containers\Dashboard\Tasks\Schedules\GetFilteredScheduleIdsTask;
|
||||
|
||||
class GetAllScheduleIdsAction
|
||||
{
|
||||
public function __construct(
|
||||
private readonly GetFilteredScheduleIdsTask $task,
|
||||
) {}
|
||||
|
||||
public function run(array $filters = []): array
|
||||
{
|
||||
return $this->task->run($filters);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user