fix remote input lock button from desktop views #4542
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Jul 17, 2024 at 13:43 UTC
991c23c5f944d22aa46bbadf6092c79635d733a4
1 file changed
+3
-3
views/default.handlebars
+3
-3
@@ -759,7 +759,7 @@
759
<span id=DeskRefreshButton title="Refresh the desktop"><img class="desktopButtons" id=DeskRefreshButtonImage src='images/icon-refresh.png' onclick=deskRefreshFunction() height=16 width=16 /></span>
760
<span id=DeskInputLockedButton title="Remote input is locked"><img class="desktopButtons" id=DeskInputLockedButtonImage src='images/icon-keylock-red.png' onclick=deskInputLockFunction(0) height=16 width=16 /></span>
761
<span id=DeskInputUnLockedButton title="Remote input is unlocked"><img class="desktopButtons" id=DeskInputUnLockedButtonImage src='images/icon-keylock.png' onclick=deskInputLockFunction(1) height=16 width=16 /></span>
762
- <span id=DeskGuestShareButton title="Share the device with a guest"><img class="desktopButtons" id=DeskInputUnLockedButtonImage src='images/icon-share2.png' onclick=showShareDevice() height=16 width=16 /></span>
762
+ <span id=DeskGuestShareButton title="Share the device with a guest"><img class="desktopButtons" id=DeskGuestShareButtonImage src='images/icon-share2.png' onclick=showShareDevice() height=16 width=16 /></span>
763
</div>
764
<div class="toright2"><span id=DeskMonitorSelectionSpan></span></div>
765
<div>
@@ -9034,8 +9034,8 @@
9034
desktop.onMetadataChange = function(metadata) { updateMetadata(desktop, 'deskmetadata'); }
9035
if ((features2 & 0x2000) != 0) desktop.m.stopInput = true;
9036
if (desktop && desktop.m.mouseCursorActive) { desktop.m.mouseCursorActive(true); }
9037
- QV('DeskInputLockedButton', desktop.m.RemoteInputLock === 1);
9038
- QV('DeskInputUnLockedButton', desktop.m.RemoteInputLock === 0);
9037
+ QV('DeskInputLockedButton', desktop.m.RemoteInputLock == true);
9038
+ QV('DeskInputUnLockedButton', desktop.m.RemoteInputLock == false);
9039
desktop.m.onRemoteInputLockChanged = function(obj, state) { QV('DeskInputLockedButton', state); QV('DeskInputUnLockedButton', !state); }
9040
desktop.m.onKeyboardStateChanged = function(obj, state) {
9041
QS('p11numlock').display = ((state & 1) ? 'inline-block' : 'none');