From 9253e178fcaff965ccea31b48069313568c17b40 Mon Sep 17 00:00:00 2001 From: Niko Lehto Date: Mon, 24 Feb 2020 08:57:28 +0100 Subject: [PATCH] Hide clipboard side bar button when view only mode The clipboard side bar button serves no purpose if user uses 'View Only' mode, this commit hides this button in those instances. --- app/ui.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/ui.js b/app/ui.js index 3f874511..0268f462 100644 --- a/app/ui.js +++ b/app/ui.js @@ -1621,6 +1621,8 @@ const UI = { .classList.add('noVNC_hidden'); document.getElementById('noVNC_mouse_button' + UI.rfb.touchButton) .classList.add('noVNC_hidden'); + document.getElementById('noVNC_clipboard_button') + .classList.add('noVNC_hidden'); } else { document.getElementById('noVNC_keyboard_button') .classList.remove('noVNC_hidden'); @@ -1628,6 +1630,8 @@ const UI = { .classList.remove('noVNC_hidden'); document.getElementById('noVNC_mouse_button' + UI.rfb.touchButton) .classList.remove('noVNC_hidden'); + document.getElementById('noVNC_clipboard_button') + .classList.remove('noVNC_hidden'); } },