summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiko Lehto <nikle@cendio.se>2020-02-24 08:57:28 +0100
committerNiko Lehto <nikle@cendio.se>2020-02-24 08:57:28 +0100
commit9253e178fcaff965ccea31b48069313568c17b40 (patch)
tree0353dc44e650d7c021d6904c4aade3986d786a3f
parentceb8ef4ec1a21bc5917185d43360aa78ff735afe (diff)
downloadnovnc-9253e178fcaff965ccea31b48069313568c17b40.tar.gz
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.
-rw-r--r--app/ui.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/ui.js b/app/ui.js
index 3f87451..0268f46 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');
}
},