mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
feat(k8sconfigure): migrate configure to react [EE-5524] (#10218)
This commit is contained in:
parent
0f1e77a6d5
commit
515b02813b
59 changed files with 1819 additions and 833 deletions
|
@ -12,7 +12,7 @@ import {
|
|||
} from '@/react-tools/react-query';
|
||||
import { queryKey as nodesCountQueryKey } from '@/react/portainer/system/useNodesCount';
|
||||
import { LicenseType } from '@/react/portainer/licenses/types';
|
||||
import { queryKeys } from '@/react/portainer/environments/queries/query-keys';
|
||||
import { environmentQueryKeys } from '@/react/portainer/environments/queries/query-keys';
|
||||
|
||||
export function useAssociateDeviceMutation() {
|
||||
const queryClient = useQueryClient();
|
||||
|
@ -22,7 +22,10 @@ export function useAssociateDeviceMutation() {
|
|||
promiseSequence(ids.map((id) => () => associateDevice(id))),
|
||||
mutationOptions(
|
||||
withError('Failed to associate devices'),
|
||||
withInvalidate(queryClient, [queryKeys.base(), nodesCountQueryKey])
|
||||
withInvalidate(queryClient, [
|
||||
environmentQueryKeys.base(),
|
||||
nodesCountQueryKey,
|
||||
])
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue