diff --git a/public/images/icon-lock.png b/public/images/icon-lock.png new file mode 100644 index 00000000..e13a45ad Binary files /dev/null and b/public/images/icon-lock.png differ diff --git a/public/styles/style.css b/public/styles/style.css index 1a9567ae..63c88cb5 100644 --- a/public/styles/style.css +++ b/public/styles/style.css @@ -2549,7 +2549,7 @@ a { -ms-grid-row: 4; } -#DeskChatButton, #DeskNotifyButton, #DeskOpenWebButton, #DeskBackgroundButton, #DeskSaveImageButton, #DeskRecordButton, #DeskClipboardInButton, #DeskClipboardOutButton, #DeskRefreshButton { +#DeskChatButton, #DeskNotifyButton, #DeskOpenWebButton, #DeskBackgroundButton, #DeskSaveImageButton, #DeskRecordButton, #DeskClipboardInButton, #DeskClipboardOutButton, #DeskRefreshButton, #DeskLockButton { float: right; margin-top: 1px; margin-right: 4px; diff --git a/views/default.handlebars b/views/default.handlebars index def26a27..c93bfe74 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -619,6 +619,7 @@   + @@ -6347,6 +6348,11 @@ meshserver.send({ action: 'toast', nodeids: [ currentNode._id ], title: decodeURIComponent('{{{extitle}}}'), msg: Q('d2devToast').value }); } + function deviceLockFunction() { + if (xxdialogMode) return; + if ((desktop != null) && (desktop.contype == 1)) { desktop.sendCtrlMsg('{"action":"lock"}'); } // Lock desktop + } + function showShareDevice() { if (xxdialogMode) return; var y = '', x = "Creates a link that allows a guest without an account to remote control this device for a limited time." + '

'; @@ -6949,7 +6955,8 @@ QV('DeskRecordButton', (deskState == 3) && (Q('Desk')['toBlob'] != null) && (desktop.m.StartRecording != null)); QV('DeskChatButton', ((rights & 16384) != 0) && (browserfullscreen == false) && (inputAllowed) && (currentNode.agent) && online); QV('DeskNotifyButton', ((rights & 16384) != 0) && (browserfullscreen == false) && (currentNode.agent) && (currentNode.agent.id < 5) && (inputAllowed) && (currentNode.agent) && online); - + //QV('DeskLockButton', ((rights & 16384) != 0) && (browserfullscreen == false) && (currentNode.agent) && (currentNode.agent.id < 5) && (inputAllowed) && (currentNode.agent) && (deskState == 3)); + QV('DeskLockButton', false); // TODO: Work on adding remote desktop lock feature. QV('DeskToolsButton', (inputAllowed) && (currentNode.agent) && online); QV('DeskOpenWebButton', (browserfullscreen == false) && (inputAllowed) && (currentNode.agent) && online); QV('DeskBackgroundButton', (deskState == 3) && (desktop.contype == 1) && (currentNode.agent) && (currentNode.agent.id != 11) && (currentNode.agent.id != 16) && online);