From 4ff0687b944a4b293ebf20d70a22b29ff4de8f24 Mon Sep 17 00:00:00 2001
From: skomerko <168652295+skomerko@users.noreply.github.com>
Date: Fri, 4 Oct 2024 16:39:08 +0200
Subject: [PATCH] WebUI: Add confirm dialog for Auto TMM
Just like in GUI, confirmation dialog shows up if it's possible to enable Auto TMM for any selected torrent. Right now it's not possible to properly test all cases in the WebUI because context menu completely hides TMM option when some torrents have it enabled and some not (no tri-state) - but that's something to add in another PR.
PR #21378.
---
src/webui/www/private/css/Window.css | 3 ++
src/webui/www/private/index.html | 2 +-
src/webui/www/private/scripts/mocha-init.js | 46 ++++++++++++-------
src/webui/www/private/views/confirmAutoTMM.html | 60 +++++++++++++++++++++++++
src/webui/www/webui.qrc | 1 +
5 files changed, 95 insertions(+), 17 deletions(-)
create mode 100644 src/webui/www/private/views/confirmAutoTMM.html
diff --git a/src/webui/www/private/css/Window.css b/src/webui/www/private/css/Window.css
index 9a71df8e3..008e760a1 100644
--- a/src/webui/www/private/css/Window.css
+++ b/src/webui/www/private/css/Window.css
@@ -57,7 +57,10 @@ Required by:
font-weight: bold;
line-height: 15px;
margin: 0;
+ overflow: hidden;
padding: 5px 10px 4px 12px;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
.mochaToolbarWrapper {
diff --git a/src/webui/www/private/index.html b/src/webui/www/private/index.html
index 868521497..86e92eb51 100644
--- a/src/webui/www/private/index.html
+++ b/src/webui/www/private/index.html
@@ -174,7 +174,7 @@
QBT_TR(Tags)QBT_TR[CONTEXT=TransferListWidget]