Browse Source

feat: add "Select All" footer to member selection dialogs

- Add tfoot with "Select All" checkbox to AdmitPendingMembersDialog
- Add tfoot with "Select All" checkbox to SetBulkVisibilityDialog
- Both footer checkboxes sync with header checkboxes for consistent UX
- Users can now select/deselect all members from top or bottom of table
pull/210/head
Jose Olarte III 6 days ago
parent
commit
7b87ab2a5c
  1. 15
      src/components/AdmitPendingMembersDialog.vue
  2. 15
      src/components/SetBulkVisibilityDialog.vue

15
src/components/AdmitPendingMembersDialog.vue

@ -79,6 +79,21 @@
</td>
</tr>
</tbody>
<tfoot v-if="membersData && membersData.length > 0">
<tr class="bg-slate-100 font-medium">
<th class="border border-slate-300 px-3 py-2">
<label class="flex items-center gap-2">
<input
type="checkbox"
:checked="isAllSelected"
:indeterminate="isIndeterminate"
@change="toggleSelectAll"
/>
Select All
</label>
</th>
</tr>
</tfoot>
</table>
</div>

15
src/components/SetBulkVisibilityDialog.vue

@ -64,6 +64,21 @@
</td>
</tr>
</tbody>
<tfoot v-if="membersData && membersData.length > 0">
<tr class="bg-slate-100 font-medium">
<th class="border border-slate-300 px-3 py-2">
<label class="flex items-center gap-2">
<input
type="checkbox"
:checked="isAllSelected"
:indeterminate="isIndeterminate"
@change="toggleSelectAll"
/>
Select All
</label>
</th>
</tr>
</tfoot>
</table>
</div>

Loading…
Cancel
Save