diff --git a/lab/activity-panel/client/x-activity-panel.ts b/lab/activity-panel/client/x-activity-panel.ts index a4ed47bbbe99acf3e2a392e558dfba4511cc8c72..a487e6f3ab0356b211c028e03bf4eaa14334818f 100644 --- a/lab/activity-panel/client/x-activity-panel.ts +++ b/lab/activity-panel/client/x-activity-panel.ts @@ -17,6 +17,7 @@ export const XActivityPanel = stateful( icon: string; action: (referenceIDs: string[], context?: T) => OptionalPromise<boolean>; }[]; + bottomContent?: (refetch: () => void) => Renderable; }, ) => { const { states, helperValues, actions } = useActivityPanelState(props); @@ -185,6 +186,11 @@ export const XActivityPanel = stateful( > <x-button icon="pending" @click=${actions.fetchOneMoreWeek}>Load more</x-button> </div> + + ${props.bottomContent?.(() => { + actions.setProviderState({}); + actions.setState({ loaded: null }); + })} </x-flex> `; },