From 93821aed8c9400a91bf807ecc8d5289e4853b646 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Mon, 21 Jul 2025 17:44:37 -0400 Subject: [PATCH] Update view all plugins behavior --- src/apps/dashboard/routes/plugins/index.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/apps/dashboard/routes/plugins/index.tsx b/src/apps/dashboard/routes/plugins/index.tsx index fdcc17963..ddad16117 100644 --- a/src/apps/dashboard/routes/plugins/index.tsx +++ b/src/apps/dashboard/routes/plugins/index.tsx @@ -50,6 +50,11 @@ export const Component = () => { setSearchQuery(event.target.value); }, []); + const onViewAll = useCallback(() => { + if (category) setCategory(undefined); + else setStatus(PluginStatusOption.All); + }, [ category ]); + const filteredPlugins = useMemo(() => { if (pluginDetails) { let filtered = pluginDetails; @@ -207,12 +212,8 @@ export const Component = () => { ) : ( { - setCategory(undefined); - setStatus(PluginStatusOption.All); - }} + isFiltered={!!category || status !== PluginStatusOption.All} + onViewAll={onViewAll} query={searchQuery} /> )}