Fix for #2942. Added flag 32 to hide back buttons.

Ylian Saint-Hilaire committed Jul 27, 2021 at 01:09 UTC 812f8fdcbefefec5fe489b8d4487afbf253a3624
3 files changed +3 -3
meshcentral-config-schema.json
+1 -1
@@ -291,7 +291,7 @@
291 "welcomePictureFullScreen": { "type": "boolean", "default": false, "description": "When enabled, the welcomePicture will show as a fullscreen background on the login screen." },
292 "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." },
293 "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." },
294 - "hide": { "type": "integer", "default": 0 },
294 + "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" },
295 "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." },
296 "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." },
297 "guestDeviceSharing": { "type": "boolean", "default": true, "description": "When set to false, the desktop/terminal sharing link feature is not available." },
sample-config-advanced.json
+1 -1
@@ -149,7 +149,7 @@
149 "_welcomePictureFullScreen": false,
150 "_meshMessengerTitle": "MeshMessenger",
151 "_meshMessengerPicture": "messenger.png",
152 - "___hide__": "Sum of: 1 = Hide header, 2 = Hide tab, 4 = Hide footer, 8 = Hide title, 16 = Hide left bar",
152 + "___hide__": "Sum of: 1 = Hide header, 2 = Hide tab, 4 = Hide footer, 8 = Hide title, 16 = Hide left bar, 32 = Hide back buttons",
153 "_hide": 4,
154 "_footer": "<a href='https://twitter.com/mytwitter'>Twitter</a>",
155 "_loginfooter": "This is a private server.",
views/default.handlebars
+1 -1
@@ -1780,7 +1780,7 @@
1780 QS('p52recordings')['max-height'] = 'calc(100vh - ' + (48 + xh + xh2) + 'px)';
1781
1782 // We are looking at a single device, remove all the back buttons
1783 - if ('{{currentNode}}'.toLowerCase() != '') {
1783 + if ((args.hide & 32) || ('{{currentNode}}'.toLowerCase() != '')) {
1784 QV('p10BackButton', false);
1785 QV('p11BackButton', false);
1786 QV('p12BackButton', false);