@skyhook-io/k8s-ui 1.7.4 → 1.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -227,22 +227,6 @@ export function GitOpsTableView({
|
|
|
227
227
|
const hasGlobalNamespaceFilter = !!onClearNamespaces && (globalNamespaces?.length ?? 0) > 0
|
|
228
228
|
const hasAnyFilter = hasLocalFilters || hasGlobalNamespaceFilter
|
|
229
229
|
|
|
230
|
-
const clearLocalFilters = () => {
|
|
231
|
-
setSearch('')
|
|
232
|
-
setSyncFilters(new Set())
|
|
233
|
-
setHealthFilters(new Set())
|
|
234
|
-
setProjectFilters(new Set())
|
|
235
|
-
setNamespaceFilters(new Set())
|
|
236
|
-
setLabelFilters(new Set())
|
|
237
|
-
setAutomationFilter('all')
|
|
238
|
-
setLifecycleFilter('all')
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
const clearAllFilters = () => {
|
|
242
|
-
clearLocalFilters()
|
|
243
|
-
onClearNamespaces?.()
|
|
244
|
-
}
|
|
245
|
-
|
|
246
230
|
// Optional '/' keyboard shortcut to focus search. Avoided as a default to
|
|
247
231
|
// not collide with other surfaces' keyboard maps; OSS opts in via prop.
|
|
248
232
|
useEffect(() => {
|
|
@@ -343,8 +327,9 @@ export function GitOpsTableView({
|
|
|
343
327
|
setAutomationFilter('all')
|
|
344
328
|
setLifecycleFilter('all')
|
|
345
329
|
setReconcilingOnly(false)
|
|
330
|
+
onClearNamespaces?.()
|
|
346
331
|
onDestinationFilterChange?.('all')
|
|
347
|
-
}, [onDestinationFilterChange])
|
|
332
|
+
}, [onClearNamespaces, onDestinationFilterChange])
|
|
348
333
|
|
|
349
334
|
const noOtherFiltersActive = useCallback(
|
|
350
335
|
(
|