Version 0.6.65

Ylian Saint-Hilaire committed Oct 16, 2020 at 15:55 UTC b555fcbe43df6bfa7db621c4211bb73a7f15bd4d
5 files changed +15 -2
package.json
+1 -1
@@ -1,6 +1,6 @@
1 {
2 "name": "meshcentral",
3 - "version": "0.6.64",
3 + "version": "0.6.65",
4 "keywords": [
5 "Remote Device Management",
6 "Remote Device Monitoring",
public/images/icon-refresh.png
Binary files /dev/null and b/public/images/icon-refresh.png differ
public/styles/style.css
+1 -1
@@ -2510,7 +2510,7 @@ a {
2510 -ms-grid-row: 4;
2511 }
2512
2513 -#DeskChatButton, #DeskNotifyButton, #DeskOpenWebButton, #DeskBackgroundButton, #DeskSaveImageButton, #DeskRecordButton, #DeskClipboardInButton, #DeskClipboardOutButton {
2513 +#DeskChatButton, #DeskNotifyButton, #DeskOpenWebButton, #DeskBackgroundButton, #DeskSaveImageButton, #DeskRecordButton, #DeskClipboardInButton, #DeskClipboardOutButton, #DeskRefreshButton {
2514 float: right;
2515 margin-top: 1px;
2516 margin-right: 4px;
translate/translate.json
+6
@@ -28480,6 +28480,12 @@
28480 "default.handlebars->container->column_l->p42->pluginRestartNotice->1"
28481 ]
28482 },
28483 + {
28484 + "en": "Refresh the desktop",
28485 + "xloc": [
28486 + "default.handlebars->container->column_l->p11->deskarea0->deskarea4->1"
28487 + ]
28488 + },
28489 {
28490 "cs": "Předávání (relay)",
28491 "de": "Weiterleitung",
views/default.handlebars
+7
@@ -619,6 +619,7 @@
619 <span id=DeskRecordButton cmenu=deskPlayerContextMenu title="Record remote desktop session to file" style="display:none"><img id=DeskRecordButtonImage src='images/icon-film.png' onclick=deskRecordSession() height=16 width=16 style=padding-top:2px /></span>
620 <span id=DeskClipboardInButton title="Download remote clipboard to local clipboard" style="display:none"><img id=DeskClipboardInButtonImage src='images/icon-clipboard-in.png' onclick=deskClipboardInFunction() height=16 width=16 style=padding-top:2px /></span>
621 <span id=DeskClipboardOutButton title="Upload local clipboard to remote device"><img id=DeskClipboardOutButtonImage src='images/icon-clipboard-out.png' onclick=deskClipboardOutFunction() height=16 width=16 style=padding-top:2px /></span>
622 + <span id=DeskRefreshButton title="Refresh the desktop"><img id=DeskRefreshButtonImage src='images/icon-refresh.png' onclick=deskRefreshFunction() height=16 width=16 style=padding-top:2px /></span>
623 </div>
624 <div>
625 <select id="deskkeys">
@@ -6116,6 +6117,11 @@
6117 if (navigator.clipboard.readText) { navigator.clipboard.readText().then(function(text) { meshserver.send({ action: 'msg', type: 'setclip', nodeid: currentNode._id, data: text }); }).catch(function(err) { }); }
6118 }
6119
6120 + function deskRefreshFunction() {
6121 + if (desktop == null || desktop.State != 3) return;
6122 + desktop.m.SendRefresh();
6123 + }
6124 +
6125 function deviceToastFunction() {
6126 if (xxdialogMode) return;
6127 setDialogMode(2, "Device Notification", 3, deviceToastFunctionEx, '<textarea id=d2devToast style=width:100%;height:80px;resize:none;overflow-y:scroll></textarea>');
@@ -6698,6 +6704,7 @@
6704 QV('DeskOpenWebButton', (browserfullscreen == false) && (inputAllowed) && (currentNode.agent) && online);
6705 QV('DeskBackgroundButton', (deskState == 3) && (desktop.contype == 1) && (currentNode.agent) && (currentNode.agent.id != 11) && (currentNode.agent.id != 16) && online);
6706 QV('DeskControlSpan', inputAllowed)
6707 + QV('DeskRefreshButton', (deskState == 3) && (desktop.contype == 1))
6708 QV('deskActionsSettings', (browserfullscreen == false));
6709 if (rights & 8) { Q('DeskControl').checked = (getstore('DeskControl', 1) == 1); } else { Q('DeskControl').checked = false; }
6710 QS('DeskControlSpan').color = Q('DeskControl').checked?null:'red';