WebUI: Improve torrent deletion dialog

This PR improves torrent deletion dialog.

1. Now shows different message depending on the number of selected torrents
2. Visually pretty much inline with the GUI
3. Adjusts to content on load
4. Now uses XHR load method. Panels / windows loaded using this method become part of the current document so there is no need to import styles or scripts (they should load marginally faster now).

PR #21185.

---------

Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com>
This commit is contained in:
skomerko 2024-08-25 08:11:36 +02:00 committed by GitHub
parent 9a9c375b9d
commit 39dd415d43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 249 additions and 142 deletions

View file

@ -657,6 +657,10 @@ window.qBittorrent.DynamicTable ??= (() => {
}
},
getRow: function(rowId) {
return this.rows.get(rowId);
},
getFilteredAndSortedRows: function() {
const filteredRows = [];