mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(edge/update): select endpoints to update [EE-4043] (#7602)
This commit is contained in:
parent
36e7981ab7
commit
4d123895ea
37 changed files with 1192 additions and 130 deletions
|
@ -13,6 +13,10 @@ async function getEdgeGroups() {
|
|||
}
|
||||
}
|
||||
|
||||
export function useEdgeGroups() {
|
||||
return useQuery(['edge', 'groups'], getEdgeGroups);
|
||||
export function useEdgeGroups<T = EdgeGroup[]>({
|
||||
select,
|
||||
}: {
|
||||
select?: (groups: EdgeGroup[]) => T;
|
||||
} = {}) {
|
||||
return useQuery(['edge', 'groups'], getEdgeGroups, { select });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue