';
setDialogMode(2, "Share Device", 1, null, x);
break;
}
@@ -6042,15 +6042,14 @@
for (var i = 0; i < deviceShares.length; i++) {
var dshare = deviceShares[i];
var trash = '';
- var details = printFlexDateTime(new Date(dshare.startTime)) + ' to ' + printFlexDateTime(new Date(dshare.expireTime));
- if (dshare.consent) { if ((dshare.consent & 8) != 0) { details += ', Prompt for consent'; } }
+ var details = format("{0}, {1} to {2}", ((dshare.p == 1)?"Terminal":"Desktop"), printFlexDateTime(new Date(dshare.startTime)), printFlexDateTime(new Date(dshare.expireTime)));
+ if (dshare.consent) { if (((dshare.consent & 8) != 0) || ((dshare.consent & 16) != 0)) { details += ", Prompt for consent"; } }
x += '
' + dshare.guestName + '
' + trash + '
' + details + '
';
}
x += '';
}
QH('p10html4', x);
-
// Change the URL
var urlviewmode = '';
if (((features & 0x10000000) == 0) && (xxcurrentView >= 10) && (xxcurrentView <= 19) && (currentNode != null)) {
@@ -6208,24 +6207,11 @@
meshserver.send({ action: 'toast', nodeids: [ currentNode._id ], title: decodeURIComponent('{{{extitle}}}'), msg: Q('d2devToast').value });
}
- /*
function showShareDevice() {
if (xxdialogMode) return;
- var y = '', x = "Creates a link that allows a guest without an account to remote desktop into this device for up to 1 hour." + '
';
- x += addHtmlValue("Guest Name", '');
- var options = { 1 : "1 minute", 5 : "5 minutes", 10 : "10 minutes", 15 : "15 minutes", 30 : "30 minutes", 45 : "45 minutes", 60 : "60 minutes", 120 : "2 hours", 240 : "4 hours", 480 : "8 hours", 720 : "12 hours", 960 : "16 hours", 1440 : "24 hours", 2880 : "2 days", 5760 : "4 days" }
- for (var i in options) { if (serverinfo.maxGuestSessionSharingTime >= i) { y += ''; } }
- x += addHtmlValue("Expire Time", '');
- x += addHtmlValue("User Consent", '');
- setDialogMode(2, "Share Device", 3, showShareDeviceEx, x);
- showShareDeviceValidate();
- }
- */
-
- function showShareDevice() {
- if (xxdialogMode) return;
- var y = '', x = "Creates a link that allows a guest without an account to remote desktop into this device for a limited time." + '
';
+ var y = '', x = "Creates a link that allows a guest without an account to remote control this device for a limited time." + '