Skip to content

Commit

Permalink
ui: show "delete search term" button (#1618)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelPull authored Jan 29, 2024
1 parent d10f12c commit fce9dea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/pages/Common/Searchbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const Searchbar = ({
/>
</FormControl>
</form>
{!isSearchBarDisplayedByDefault ? (
{searchTerm || !isSearchBarDisplayedByDefault ? (
<ButtonBase
data-test="clear-searchbar"
onClick={() => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Overview/TableView.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ const TableView = (props) => {
isSearchBarDisplayedByDefault={true}
searchDisabled={false}
safeOnChange={true}
previewText="Search Projects"
previewText={strings.project.project_searchtext}
searchTerm={searchTerm}
storeSearchTerm={(word) => storeSearchTerm(word)}
/>
Expand Down

0 comments on commit fce9dea

Please sign in to comment.