From c16ed41a7dd7e9ad71ef57ca1f10ef85ba8528e6 Mon Sep 17 00:00:00 2001 From: Yat Ho Date: Mon, 9 Oct 2023 09:28:50 +0800 Subject: [PATCH] feat: better description for forced verify option (#6088) --- web/src/force-verify-dialog.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/web/src/force-verify-dialog.js b/web/src/force-verify-dialog.js index df8cc4877..028e9e62e 100644 --- a/web/src/force-verify-dialog.js +++ b/web/src/force-verify-dialog.js @@ -58,16 +58,12 @@ export class ForceVerifyDialog extends EventTarget { } static _createMessage(options) { - let heading = null; - let message = null; const { torrents } = options; - if (torrents.length === 1) { - heading = `Force verify local data of ${torrents[0].getName()}?`; - message = `This torrent's progress will be rechecked without any safety checks. Are you sure?`; - } else { - heading = `Force verify local data of ${torrents.length} transfers?`; - message = `These torrents' progress will be rechecked without any safety checks. Are you sure?`; - } + const heading = + torrents.length === 1 + ? `Force verify local data of ${torrents[0].getName()}?` + : `Force verify local data of ${torrents.length} transfers?`; + const message = `Missing files will be re-downloaded, use the non-forced verify function if you'd like to check for missing files.`; return { heading, message }; } }