Skip to content

Commit

Permalink
Clean up Search
Browse files Browse the repository at this point in the history
  • Loading branch information
ckitsanelis committed Oct 19, 2023
1 parent 16e9223 commit 1254c04
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/viewer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ export default class App extends React.Component<Props, State> {
if (searchText === "")
this.clearSearch();
else {
console.log(this.state)
const rules = this.state.rules;
const logFile = this.state.logFile;
const logFileText = this.state.logFileAsString;
Expand Down Expand Up @@ -193,12 +192,11 @@ export default class App extends React.Component<Props, State> {
rowProperties: newRowsProps,
});
}
this.sea
}

searchCommand() {
clearTimeout(searchTimeoutId);
searchTimeoutId = setTimeout(this.filterLog, 1000);
searchTimeoutId = setTimeout(this.filterLog, 1000);
}

handleAnnotationDialog(newRules: Rule[], isClose: boolean) {
Expand Down Expand Up @@ -427,7 +425,7 @@ export default class App extends React.Component<Props, State> {
}

clearSegmentation() {
this.setState({ collapsibleRows : {} });
this.setState({ collapsibleRows: {} });
}

switchBooleanState(name: string) {
Expand Down Expand Up @@ -482,6 +480,7 @@ export default class App extends React.Component<Props, State> {
</div>
<div style={{ flex: 1, display: "flex", justifyContent: "end" }}>
<VSCodeDropdown
key="searchDropdown"
style={{ marginRight: "5px" }}
onChange={(e) => (searchColumn = e.target.value)}
>
Expand All @@ -492,11 +491,12 @@ export default class App extends React.Component<Props, State> {
))}
</VSCodeDropdown>
<VSCodeTextField
key="searchTextField"
style={{ marginRight: "5px" }}
placeholder="Search Text"
value={searchText}
onInput={(e) => (searchText = e.target.value)}
onKeyUp={(e) => this.searchCommand()}
onInput={(e) => {searchText = e.target.value; this.searchCommand();}}
autofocus
>
<Tooltip title={<h3>Match Case</h3>} placement="bottom" arrow>
<span
Expand Down

0 comments on commit 1254c04

Please sign in to comment.