Fix unexpand filter and reformat

This commit is contained in:
Laurent Nguyen 2024-03-27 10:41:26 +01:00
parent 72ec5e891e
commit fb6be32166

View File

@ -629,7 +629,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
};
const onHideFilterClick = (): void => {
setIsFilterCreated(false);
setIsFilterExpanded(false);
// this.isFilterExpanded(false);
@ -1108,7 +1108,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
<button
className="filterbtnstyle queryButton"
onClick={onShowFilterClick}
/*data-bind="click: onShowFilterClick"*/
/*data-bind="click: onShowFilterClick"*/
>
Edit Filter
</button>
@ -1158,7 +1158,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
}
value={filterContent}
onChange={(e) => setFilterContent(e.target.value)}
/*
/*
data-bind="
W attr:{
placeholder:isPreferredApiMongoDB?'Type a query predicate (e.g., {´a´:´foo´}), or choose one from the drop down list, or leave empty to query all documents.':'Type a query predicate (e.g., WHERE c.id=´1´), or choose one from the drop down list, or leave empty to query all documents.'
@ -1211,7 +1211,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
tabIndex={0}
onClick={onHideFilterClick}
onKeyDown={onCloseButtonKeyDown}
/*data-bind="click: onHideFilterClick, event: { keydown: onCloseButtonKeyDown }"*/
/*data-bind="click: onHideFilterClick, event: { keydown: onCloseButtonKeyDown }"*/
>
<img src={CloseIcon} style={{ height: 14, width: 14 }} alt="Hide filter" />
</span>