diff --git a/meshcentral-config-schema.json b/meshcentral-config-schema.json index 126bf430..731ba88b 100644 --- a/meshcentral-config-schema.json +++ b/meshcentral-config-schema.json @@ -291,7 +291,7 @@ "welcomePictureFullScreen": { "type": "boolean", "default": false, "description": "When enabled, the welcomePicture will show as a fullscreen background on the login screen." }, "meshMessengerTitle": { "type": "string", "default": "MeshMessenger", "description": "Text that will be displayed on the top of the messenger window when no username or device name is displayed." }, "meshMessengerPicture": { "type": "string", "default": null, "description": "Name of a .png image file that is placed in meshcentral-data that is displayed on the top of the messenger web page. When null, the default image is displayed." }, - "hide": { "type": "integer", "default": 0 }, + "hide": { "type": "integer", "default": 0, "description": "Sum of: 1 = Hide header, 2 = Hide tab, 4 = Hide footer, 8 = Hide title, 16 = Hide left bar, 32 = Hide back buttons" }, "footer": { "type": "string", "default": null, "description": "This is a HTML string displayed at the bottom of the web page when a user is logged in." }, "loginfooter": { "type": "string", "default": null, "description": "This is a HTML string displayed at the bottom of the web page when a user is not logged in." }, "guestDeviceSharing": { "type": "boolean", "default": true, "description": "When set to false, the desktop/terminal sharing link feature is not available." }, diff --git a/sample-config-advanced.json b/sample-config-advanced.json index 33ec59a3..b17963c9 100644 --- a/sample-config-advanced.json +++ b/sample-config-advanced.json @@ -149,7 +149,7 @@ "_welcomePictureFullScreen": false, "_meshMessengerTitle": "MeshMessenger", "_meshMessengerPicture": "messenger.png", - "___hide__": "Sum of: 1 = Hide header, 2 = Hide tab, 4 = Hide footer, 8 = Hide title, 16 = Hide left bar", + "___hide__": "Sum of: 1 = Hide header, 2 = Hide tab, 4 = Hide footer, 8 = Hide title, 16 = Hide left bar, 32 = Hide back buttons", "_hide": 4, "_footer": "Twitter", "_loginfooter": "This is a private server.", diff --git a/views/default.handlebars b/views/default.handlebars index 569b1960..3bdaf880 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -1780,7 +1780,7 @@ QS('p52recordings')['max-height'] = 'calc(100vh - ' + (48 + xh + xh2) + 'px)'; // We are looking at a single device, remove all the back buttons - if ('{{currentNode}}'.toLowerCase() != '') { + if ((args.hide & 32) || ('{{currentNode}}'.toLowerCase() != '')) { QV('p10BackButton', false); QV('p11BackButton', false); QV('p12BackButton', false);