mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-11-15 11:21:57 +00:00
feat: implement multi-select checkbox interface for bulk host group assignment
- Add new backend endpoint PUT /api/hosts/bulk/groups for multi-group assignment - Update BulkAssignModal to use checkbox interface instead of single select - Replace single group selection with multi-select checkboxes - Maintain visual consistency with existing multi-select patterns - Add proper validation and error handling for multiple groups - Remove unused bulkHostGroupId variable to fix linting error This allows users to assign multiple hosts to multiple groups simultaneously, improving the bulk assignment workflow and user experience.
This commit is contained in:
@@ -1794,7 +1794,6 @@ const BulkAssignModal = ({
|
|||||||
isLoading,
|
isLoading,
|
||||||
}) => {
|
}) => {
|
||||||
const [selectedGroupIds, setSelectedGroupIds] = useState([]);
|
const [selectedGroupIds, setSelectedGroupIds] = useState([]);
|
||||||
const bulkHostGroupId = useId();
|
|
||||||
|
|
||||||
// Fetch host groups for selection
|
// Fetch host groups for selection
|
||||||
const { data: hostGroups } = useQuery({
|
const { data: hostGroups } = useQuery({
|
||||||
|
|||||||
Reference in New Issue
Block a user