fix: disable empty platform selection

This commit is contained in:
qiuxiang 2026-09-01 11:58:26 +08:00
parent ad893594ae
commit 1f5ed4efe9

View File

@ -116,6 +116,7 @@
<th class="w-12 text-center">
<input type="checkbox" aria-label="{{ trans('store_zhongcai_reconciliations.select_all') }}"
@if ($pageIds->isEmpty()) disabled @endif
x-bind:disabled="platformIds[activePlatform].length === 0"
x-on:change="selected = $event.target.checked ? platformIds[activePlatform] : []"
x-bind:checked="selected.length === platformIds[activePlatform].length && selected.length > 0"
class="h-4 w-4 rounded border-gray-300 text-green" />