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.
This commit is contained in:
Niko Lehto
2020-02-24 08:57:28 +01:00
parent ceb8ef4ec1
commit 9253e178fc

View File

@@ -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');
}
},