-
-
Notifications
You must be signed in to change notification settings - Fork 958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sort button should indicate the current sorting order (ascending or descending) #7830
Comments
This comment was marked as resolved.
This comment was marked as resolved.
This issue seems to be a good fit for newbie contributors. You are welcome to contribute to Weblate! Don't hesitate to ask any questions you would have while implementing this. You can learn about how to get started in our contributors documentation. |
@nijel Can you please point me to code of the desired sort button or you can also point me to instructions to find this in UI. Thanks Edit 1: I found the button. Should we keep a tool tip for showing the current order, this is how tooltip looks like. |
I think the issue is not only about missing tooltip, but that the button looks same regardless sorting order. |
@nijel I looked into it more, the logic here seems alright. The root cause is re-render of the page on every click of change in sorting order. We receive a preset value for What do you think of adding another param in the request for the current sort order and using that for evaluating the class Edit 2: Specifically, I mean adding a Edit 3: After investigating a bit more, the toggle seems to happen here actually. |
The order is implied in the order string - for example '-priority' and 'priority'. That is the logic implemented here: weblate/weblate/static/loader-bootstrap.js Lines 934 to 955 in 531881d
Maybe it's just not working properly or is not triggered, I think this used to work in the past. |
Thank you for your report; the issue you have reported has just been fixed.
|
Describe the issue
The sort button is always the same (sort-ascending) after the page is loaded.
I already tried
Steps to reproduce the behavior
Expected behavior
The sort button should indicate the current sorting order (ascending or descending).
Screenshots
Exception traceback
No response
How do you run Weblate?
weblate.org service
Weblate versions
No response
Weblate deploy checks
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: