mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 07:19:41 +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
8
app/react/kubernetes/queries/useGetMetricsMutation.ts
Normal file
8
app/react/kubernetes/queries/useGetMetricsMutation.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { useMutation } from 'react-query';
|
||||
|
||||
import { getMetricsForAllNodes } from '../services/service';
|
||||
|
||||
// use this as a mutation because the metrics request should be manually fired when the user clicks to turn the metrics toggle on
|
||||
export function useGetMetricsMutation() {
|
||||
return useMutation(getMetricsForAllNodes);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue