From d3725937ef0c60a99206a1400da570af7adff2f4 Mon Sep 17 00:00:00 2001 From: christer88 Date: Fri, 24 Aug 2018 12:32:25 +0200 Subject: [PATCH] Fix confirmation box text for network removal in client This PR will make the text inside confirmation box for network removal in client more correct. Earlier it said "Disconnect from", but in reality it disconnects and remove the network entierly. The js code may be utterly wrong. If so, please help. --- client/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/utils.js b/client/js/utils.js index 5b185465..86d9de52 100644 --- a/client/js/utils.js +++ b/client/js/utils.js @@ -169,7 +169,7 @@ function closeChan(chan) { cmd = "/quit"; const server = chan.find(".name").html(); - if (!confirm("Disconnect from " + server + "?")) { // eslint-disable-line no-alert + if (!confirm(`Are you sure you want to remove ${server}?`)) { // eslint-disable-line no-alert return false; } }