diff --git a/package.json b/package.json index 9cbbd931..41c0bb0d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.3.2-h", + "version": "0.3.2-i", "keywords": [ "Remote Management", "Intel AMT", diff --git a/public/scripts/amt-terminal-0.0.2.js b/public/scripts/amt-terminal-0.0.2.js index 6e2a3769..0f71cd55 100644 --- a/public/scripts/amt-terminal-0.0.2.js +++ b/public/scripts/amt-terminal-0.0.2.js @@ -356,6 +356,16 @@ var CreateAmtRemoteTerminal = function (divid) { for (var z = 0; z < obj.width; z++) { _tscreen[y][z] = ' '; _scratt[y][z] = (7 << 6); } } break; + case 'M': // Delete X lines, default 1 + var x = 1; + if (argslen == 1) { x = args[0] } + for (var y = _termy; y <= _scrollRegion[1] - x; y++) { + for (var z = 0; z < obj.width; z++) { _tscreen[y][z] = _tscreen[y + x][z]; _scratt[y][z] = _scratt[y + x][z]; } + } + for (var y = _scrollRegion[1] - x + 1; y < _scrollRegion[1]; y++) { + for (var z = 0; z < obj.width; z++) { _tscreen[y][z] = ' '; _scratt[y][z] = (7 << 6); } + } + break; case 'T': // Scroll down the scroll region X lines, default 1 var x = 1; if (argslen == 1) { x = args[0] } diff --git a/views/default-min.handlebars b/views/default-min.handlebars index 0196866e..6a8ead42 100644 --- a/views/default-min.handlebars +++ b/views/default-min.handlebars @@ -1 +1 @@ - {{{title}}}
{{{title}}}
{{{title2}}}

{{{logoutControl}}}

 

\ No newline at end of file + {{{title}}}
{{{title}}}
{{{title2}}}

{{{logoutControl}}}

 

\ No newline at end of file diff --git a/views/default-mobile-min.handlebars b/views/default-mobile-min.handlebars index 87b3c32b..fdc21cdc 100644 --- a/views/default-mobile-min.handlebars +++ b/views/default-mobile-min.handlebars @@ -1 +1 @@ - {{{title}}}
{{{title}}}
{{{title2}}}
\ No newline at end of file + {{{title}}}
{{{title}}}
{{{title2}}}
\ No newline at end of file diff --git a/views/default-mobile.handlebars b/views/default-mobile.handlebars index 488aaa93..17712320 100644 --- a/views/default-mobile.handlebars +++ b/views/default-mobile.handlebars @@ -249,10 +249,10 @@
Device Groups - ( New ) + ( New )

- +
@@ -655,6 +655,10 @@ QV('manageAuthApp', features & 4096); QV('manageOtp', ((features & 4096) != 0) && ((userinfo.otpsecret == 1) || (userinfo.otphkeys > 0))); + // On the mobile app, don't allow group creation (for now). + QV('p3createMeshLink1', false); + QV('p3createMeshLink2', false); + if (typeof userinfo.passchange == 'number') { if (userinfo.passchange == -1) { QH('p2nextPasswordUpdateTime', ' - Reset on next login.'); } else if ((passRequirements != null) && (typeof passRequirements.reset == 'number')) { @@ -1165,6 +1169,9 @@ function account_createMesh() { if (xxdialogMode) return; + // Check if we are disallowed from creating a device group + if ((userinfo.siteadmin != 0xFFFFFFFF) && ((userinfo.siteadmin & 64) != 0)) { setDialogMode(2, "New Device Group", 1, null, "This account does not have the rights to create a new device group."); return; } + // Remind the user to verify the email address if ((userinfo.emailVerified !== true) && (serverinfo.emailcheck == true) && (userinfo.siteadmin != 0xFFFFFFFF)) { setDialogMode(2, "Account Security", 1, null, "Unable to access a device until a email address is verified. This is required for password recovery. Go to the \"My Account\" to change and verify an email address."); return; }