mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 07:19:41 +02:00
feat(edge/stacks): reload edge stacks from server [EE-5970] (#10061)
This commit is contained in:
parent
0f6607e703
commit
36b8c849b3
1 changed files with 12 additions and 1 deletions
|
@ -1,11 +1,22 @@
|
|||
import { useQueryClient } from 'react-query';
|
||||
|
||||
import { PageHeader } from '@@/PageHeader';
|
||||
|
||||
import { queryKeys } from '../queries/query-keys';
|
||||
|
||||
import { EdgeStacksDatatable } from './EdgeStacksDatatable';
|
||||
|
||||
export function ListView() {
|
||||
const queryClient = useQueryClient();
|
||||
|
||||
return (
|
||||
<>
|
||||
<PageHeader title="Edge Stacks list" breadcrumbs="Edge Stacks" reload />
|
||||
<PageHeader
|
||||
title="Edge Stacks list"
|
||||
breadcrumbs="Edge Stacks"
|
||||
reload
|
||||
onReload={() => queryClient.invalidateQueries(queryKeys.base())}
|
||||
/>
|
||||
|
||||
<EdgeStacksDatatable />
|
||||
</>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue