Fix for #2942. Back button not hidden correctly.

Ylian Saint-Hilaire committed Jul 28, 2021 at 09:27 UTC bbbe5e7d36dc0339ae7802e95cdadbad41721802
1 file changed +2 -1
views/default.handlebars
+2 -1
@@ -1788,6 +1788,7 @@
1788 QV('p14BackButton', false);
1789 QV('p15BackButton', false);
1790 QV('p16BackButton', false);
1791 + QV('p17BackButton', false);
1792 }
1793 p1updateInfo();
1794 }
@@ -15379,7 +15380,7 @@
15380 // Panel 115 is weird, it's panel 15 for device console but used as a server console.
15381 if (x == 115) { QV('p15', true); }
15382 QV('p15uploadCore', x != 115);
15382 - QV('p15BackButton', x != 115);
15383 + QV('p15BackButton', (x != 115) && ((args.hide & 32) == 0) && ('{{currentNode}}'.toLowerCase() == '')); // For device console, only show the back button if not hidden and not in single device view mode.
15384 if ((x == 15) || (x == 115)) { setupConsole(); }
15385
15386 if (x == 1) mainUpdate(4);