From 449ca96e28c56a217ec77d699125d6599f613ff0 Mon Sep 17 00:00:00 2001 From: skomerko <168652295+skomerko@users.noreply.github.com> Date: Mon, 30 Sep 2024 12:05:17 +0200 Subject: [PATCH] WebUI: Add 'Engine' column to Search table This PR adds 'Engine' column to Search table. I also fixed inconsistent naming and renamed 'Search engine' column to 'Engine URL'. PR #21397. --- src/webui/www/private/scripts/dynamicTable.js | 3 ++- src/webui/www/private/scripts/search.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/webui/www/private/scripts/dynamicTable.js b/src/webui/www/private/scripts/dynamicTable.js index be2c70518..f969d5823 100644 --- a/src/webui/www/private/scripts/dynamicTable.js +++ b/src/webui/www/private/scripts/dynamicTable.js @@ -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(); diff --git a/src/webui/www/private/scripts/search.js b/src/webui/www/private/scripts/search.js index 8a79922f3..e8ac914bd 100644 --- a/src/webui/www/private/scripts/search.js +++ b/src/webui/www/private/scripts/search.js @@ -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, };