mirror of https://github.com/portainer/portainer
fix(waiting-room): add support for bulk deletion in waiting room EE-7136 (#11880)
parent
4be2c061f5
commit
c94cfb1308
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue