@@ -335,10 +335,6 @@ const PartitionedWorkbench: React.FunctionComponent<WorkbenchProps & { partition
335335 revealConsole = { ( ) => selectPropertiesTab ( 'console' ) }
336336 isLive = { isLive }
337337 />
338- < div className = 'workbench-actions-status-bar' >
339- { ! ! hiddenActionsCount && < span className = 'workbench-actions-hidden-count' title = { hiddenActionsCount + ' actions hidden by filters' } > { hiddenActionsCount } hidden</ span > }
340- < ActionsFilterButton counters = { model ?. actionCounters } />
341- </ div >
342338 </ div >
343339 } ;
344340 const metadataTab : TabbedPaneTabModel = {
@@ -347,6 +343,8 @@ const PartitionedWorkbench: React.FunctionComponent<WorkbenchProps & { partition
347343 component : < MetadataView model = { model } />
348344 } ;
349345
346+ const actionsFilterWithCount = selectedNavigatorTab === 'actions' && < ActionsFilterButton counters = { model ?. actionCounters } hiddenActionsCount = { hiddenActionsCount } /> ;
347+
350348 return < div className = 'vbox workbench' { ...( inert ? { inert : true } : { } ) } >
351349 { ! hideTimeline && < Timeline
352350 model = { model }
@@ -381,6 +379,7 @@ const PartitionedWorkbench: React.FunctionComponent<WorkbenchProps & { partition
381379 sidebar = {
382380 < TabbedPane
383381 tabs = { [ actionsTab , metadataTab ] }
382+ rightToolbar = { [ actionsFilterWithCount ] }
384383 selectedTab = { selectedNavigatorTab }
385384 setSelectedTab = { setSelectedNavigatorTab }
386385 />
@@ -405,9 +404,16 @@ const PartitionedWorkbench: React.FunctionComponent<WorkbenchProps & { partition
405404 </ div > ;
406405} ;
407406
408- const ActionsFilterButton : React . FC < { counters ?: Map < string , number > } > = ( { counters } ) => {
407+ const ActionsFilterButton : React . FC < { counters ?: Map < string , number > ; hiddenActionsCount : number } > = ( { counters, hiddenActionsCount } ) => {
409408 const [ actionsFilter , setActionsFilter ] = useSetting < ActionGroup [ ] > ( 'actionsFilter' , [ ] ) ;
410- return < DialogToolbarButton icon = 'filter' title = 'Filter actions' dialogDataTestId = 'actions-filter-dialog' >
409+
410+ const iconRef = React . useRef < HTMLButtonElement > ( null ) ;
411+ const buttonChildren = < >
412+ { hiddenActionsCount > 0 && < span className = 'workbench-actions-hidden-count' title = { hiddenActionsCount + ' actions hidden by filters' } > { hiddenActionsCount } hidden</ span > }
413+ < span ref = { iconRef } className = 'codicon codicon-filter' > </ span >
414+ </ > ;
415+
416+ return < DialogToolbarButton title = 'Filter actions' dialogDataTestId = 'actions-filter-dialog' buttonChildren = { buttonChildren } anchorRef = { iconRef } >
411417 < SettingsView
412418 settings = { [
413419 {
0 commit comments