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.
This commit is contained in:
christer88 2018-08-24 12:32:25 +02:00 committed by GitHub
parent 82a570bf20
commit d3725937ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}