Skip to content
Snippets Groups Projects
Commit 965029a8 authored by Maxime Jacquemin's avatar Maxime Jacquemin
Browse files

[ivette] Minor details

Changing displayed texts where all functions are filtered.
parent 407564ad
No related branches found
No related tags found
No related merge requests found
...@@ -139,7 +139,9 @@ export function Section(props: SectionProps): JSX.Element | null { ...@@ -139,7 +139,9 @@ export function Section(props: SectionProps): JSX.Element | null {
const visible = unfold ?? state; const visible = unfold ?? state;
const maxHeight = visible ? 'max-content' : 0; const maxHeight = visible ? 'max-content' : 0;
const { rightButtonProps: iconProps } = props; const { rightButtonProps: iconProps } = props;
const rightButton = iconProps ? <IconButton {...iconProps}/> : undefined; const className = 'dome-xSideBarSection-filterButton ' + iconProps?.className;
const rightButton =
iconProps ? <IconButton {...iconProps} className={className}/> : undefined;
return ( return (
<div className={'dome-xSideBarSection ' + props.className}> <div className={'dome-xSideBarSection ' + props.className}>
......
...@@ -186,7 +186,6 @@ export default function Globals(): JSX.Element { ...@@ -186,7 +186,6 @@ export default function Globals(): JSX.Element {
icon: 'TUNINGS', icon: 'TUNINGS',
title: `Functions filtering options (${nFilter} / ${nTotal})`, title: `Functions filtering options (${nFilter} / ${nTotal})`,
onClick: onContextMenu, onClick: onContextMenu,
className: 'dome-xSideBarSection-filterButton'
}; };
const filteredFunctions = const filteredFunctions =
...@@ -209,14 +208,9 @@ export default function Globals(): JSX.Element { ...@@ -209,14 +208,9 @@ export default function Globals(): JSX.Element {
const allFiltered = const allFiltered =
<div className='dome-xSideBarSection-content'> <div className='dome-xSideBarSection-content'>
<label className='dome-xSideBarSection-info'> <label className='dome-xSideBarSection-info'>
{'All functions are filtered. Maybe you can change ' + {'All functions are filtered. Try adjusting function filters.'}
'the filtering options.'}
</label> </label>
<Button <Button {...filterButtonProps} label='Functions filters' />
{...filterButtonProps}
className=''
label='Functions filtering options'
/>
</div>; </div>;
return ( return (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment