Skip to content

Commit

Permalink
Move sort in menu (#195)
Browse files Browse the repository at this point in the history
* move sort below filters

* 1.21.1
  • Loading branch information
mdroidian authored Dec 14, 2023
1 parent 46c6023 commit 60e1649
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "query-builder",
"version": "1.21.0",
"version": "1.21.1",
"description": "Introduces new user interfaces for building queries in Roam",
"main": "./build/main.js",
"author": {
Expand Down
16 changes: 8 additions & 8 deletions src/components/ResultsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -960,14 +960,6 @@ const ResultsView: ResultsViewComponent = ({
setIsEditViews(true);
}}
/>
<MenuItem
icon={"sort"}
text={"Sort"}
className={activeSort.length ? "roamjs-item-dirty" : ""}
onClick={() => {
setIsEditColumnSort(true);
}}
/>
<MenuItem
icon={isEditSearchFilter ? "zoom-out" : "search"}
text={isEditSearchFilter ? "Hide Search" : "Search"}
Expand All @@ -987,6 +979,14 @@ const ResultsView: ResultsViewComponent = ({
setIsEditColumnFilter(true);
}}
/>
<MenuItem
icon={"sort"}
text={"Sort"}
className={activeSort.length ? "roamjs-item-dirty" : ""}
onClick={() => {
setIsEditColumnSort(true);
}}
/>
<MenuItem
icon={"random"}
text={"Get Random"}
Expand Down

0 comments on commit 60e1649

Please sign in to comment.