Skip to content

Commit

Permalink
WebUI: Add 'Engine' column to Search table
Browse files Browse the repository at this point in the history
This PR adds 'Engine' column to Search table.
I also fixed inconsistent naming and renamed 'Search engine' column to 'Engine URL'.

PR #21397.
  • Loading branch information
skomerko authored Sep 30, 2024
1 parent cebaedf commit 449ca96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/webui/www/private/scripts/dynamicTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -1728,7 +1728,8 @@ window.qBittorrent.DynamicTable ??= (() => {
this.newColumn("fileSize", "", "QBT_TR(Size)QBT_TR[CONTEXT=SearchResultsTable]", 100, true);
this.newColumn("nbSeeders", "", "QBT_TR(Seeders)QBT_TR[CONTEXT=SearchResultsTable]", 100, true);
this.newColumn("nbLeechers", "", "QBT_TR(Leechers)QBT_TR[CONTEXT=SearchResultsTable]", 100, true);
this.newColumn("siteUrl", "", "QBT_TR(Search engine)QBT_TR[CONTEXT=SearchResultsTable]", 250, true);
this.newColumn("engineName", "", "QBT_TR(Engine)QBT_TR[CONTEXT=SearchResultsTable]", 100, true);
this.newColumn("siteUrl", "", "QBT_TR(Engine URL)QBT_TR[CONTEXT=SearchResultsTable]", 250, true);
this.newColumn("pubDate", "", "QBT_TR(Published On)QBT_TR[CONTEXT=SearchResultsTable]", 200, true);

this.initColumnsFunctions();
Expand Down
1 change: 1 addition & 0 deletions src/webui/www/private/scripts/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,7 @@ window.qBittorrent.Search ??= (() => {
fileUrl: result.fileUrl,
nbLeechers: result.nbLeechers,
nbSeeders: result.nbSeeders,
engineName: result.engineName,
siteUrl: result.siteUrl,
pubDate: result.pubDate,
};
Expand Down

0 comments on commit 449ca96

Please sign in to comment.