fix(waiting-room): add support for bulk deletion in waiting room EE-7136 (#11880)

pull/11886/head
matias-portainer 2024-05-28 17:18:20 -03:00 committed by GitHub
parent 4be2c061f5
commit c94cfb1308
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import { Check, CheckCircle, Trash2 } from 'lucide-react';
import { notifySuccess } from '@/portainer/services/notifications';
import { useDeleteEnvironmentsMutation } from '@/react/portainer/environments/queries/useDeleteEnvironmentsMutation';
import { useDeleteEnvironmentsMutation } from '@/react/portainer/environments/ListView/useDeleteEnvironmentsMutation';
import { Environment } from '@/react/portainer/environments/types';
import { withReactQuery } from '@/react-tools/withReactQuery';
import { useIsPureAdmin } from '@/react/hooks/useUser';
@ -135,7 +135,7 @@ export function TableActions({
}
removeMutation.mutate(
devices.map((d) => d.Id),
devices.map((d) => ({ id: d.Id, name: d.Name })),
{
onSuccess() {
notifySuccess('Success', 'Edge devices were hidden successfully');