Skip to content
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

WebUI: Update sort icon after changing column order #22299

Merged
merged 1 commit into from
Feb 23, 2025

Conversation

skomerko
Copy link
Contributor

This PR fixes a bug where the sort icon did not update correctly after reordering columns.

Steps to reproduce:

  1. Sort a column
  2. Move it to a different position
  3. The sort icon remains in its original location

},

updateHeader: function(header) {
const ths = this.getRowCells(header);
for (let i = 0; i < ths.length; ++i) {
const th = ths[i];
th._this = this;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this property, because it doesn't seem to be used anywhere.

@Chocobo1 Chocobo1 requested a review from a team February 21, 2025 12:45
@Chocobo1 Chocobo1 added the WebUI WebUI-related issues/changes label Feb 21, 2025
@Chocobo1 Chocobo1 added this to the 5.2 milestone Feb 21, 2025
@Chocobo1 Chocobo1 merged commit ba3d89b into qbittorrent:master Feb 23, 2025
15 checks passed
@Chocobo1
Copy link
Member

@skomerko
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebUI WebUI-related issues/changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants