Skip to content

Commit a8cf436

Browse files
Merge pull request #547 from tommcc/add-conditional-view-all
Hide "All" nav item if JSON flag is set
2 parents 3c42df2 + 97c68ee commit a8cf436

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
@@ -568,7 +568,7 @@ var ui_builder = function () {
568568
output += 'var ishControls = {"ishControlsHide":' + JSON.stringify(patternlab.config.ishControlsHide) + '};' + eol;
569569

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

573573
//patternPaths
574574
output += 'var patternPaths = ' + JSON.stringify(patternlab.patternPaths) + ';' + eol;

0 commit comments

Comments
 (0)