Adding disconnect_message Confirmation
When parameter disconnect_message is set, it will show a message to confirm the disconection being its value the text on the confirm dialog. This is related to the issue #1502 "two-step 'disconnect' option with custom message #1502"
This commit is contained in:
parent
fcb95821b7
commit
ce61d2da57
|
|
@ -1047,6 +1047,10 @@ const UI = {
|
|||
},
|
||||
|
||||
disconnect() {
|
||||
// When parameter disconnect_message is set, it will show a message to confirm the disconection being its value the text on the confirm dialog
|
||||
if (WebUtil.getConfigVar('disconnect_message', false) && confirm( WebUtil.getConfigVar('disconnect_message') ) == false ) {
|
||||
return;
|
||||
}
|
||||
UI.rfb.disconnect();
|
||||
|
||||
UI.connected = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue