Skip to content

Commit 97c68ee

Browse files
author
Tom McCaffery
committed
Pass ishControlsHide to the nav template so it can also use hide flags
1 parent 0607e06 commit 97c68ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/lib/ui_builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ var ui_builder = function () {
545545
output += 'var ishControls = {"ishControlsHide":' + JSON.stringify(patternlab.config.ishControlsHide) + '};' + eol;
546546

547547
//navItems
548-
output += 'var navItems = {"patternTypes": ' + JSON.stringify(patternlab.patternTypes) + '};' + eol;
548+
output += 'var navItems = {"patternTypes": ' + JSON.stringify(patternlab.patternTypes) + ', "ishControlsHide": ' + JSON.stringify(patternlab.config.ishControlsHide) +'};' + eol;
549549

550550
//patternPaths
551551
output += 'var patternPaths = ' + JSON.stringify(patternlab.patternPaths) + ';' + eol;

0 commit comments

Comments
 (0)