mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(cache): introduce cache option [EE-6293] (#10672)
Co-authored-by: testa113 <testa113>
This commit is contained in:
parent
57ed6ae6a6
commit
4096bb562d
71 changed files with 421 additions and 49 deletions
|
@ -1,6 +1,8 @@
|
|||
import { useRouter } from '@uirouter/react';
|
||||
import { RefreshCw } from 'lucide-react';
|
||||
import { PropsWithChildren } from 'react';
|
||||
import { RefreshCw } from 'lucide-react';
|
||||
|
||||
import { dispatchCacheRefreshEvent } from '@/portainer/services/http-request.helper';
|
||||
|
||||
import { Button } from '../buttons';
|
||||
|
||||
|
@ -51,6 +53,7 @@ export function PageHeader({
|
|||
);
|
||||
|
||||
function onClickedRefresh() {
|
||||
dispatchCacheRefreshEvent();
|
||||
return onReload ? onReload() : router.stateService.reload();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue