From 97c68ee720825dfb945c6168b9dbf75e60694286 Mon Sep 17 00:00:00 2001 From: Tom McCaffery Date: Sat, 29 Oct 2016 22:20:17 -0400 Subject: [PATCH] Pass ishControlsHide to the nav template so it can also use hide flags --- core/lib/ui_builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/ui_builder.js b/core/lib/ui_builder.js index 4a0e87f0a..23d05b3f8 100644 --- a/core/lib/ui_builder.js +++ b/core/lib/ui_builder.js @@ -545,7 +545,7 @@ var ui_builder = function () { output += 'var ishControls = {"ishControlsHide":' + JSON.stringify(patternlab.config.ishControlsHide) + '};' + eol; //navItems - output += 'var navItems = {"patternTypes": ' + JSON.stringify(patternlab.patternTypes) + '};' + eol; + output += 'var navItems = {"patternTypes": ' + JSON.stringify(patternlab.patternTypes) + ', "ishControlsHide": ' + JSON.stringify(patternlab.config.ishControlsHide) +'};' + eol; //patternPaths output += 'var patternPaths = ' + JSON.stringify(patternlab.patternPaths) + ';' + eol;