Skip to content
This repository was archived by the owner on Dec 10, 2019. It is now read-only.

Commit dc03af5

Browse files
committed
fixed a bug preventing template/page pattern states from displaying
1 parent 53a3091 commit dc03af5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

builder/object_factory.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"use strict";
1313

1414
var oPattern = function(subdir, filename, data){
15-
//console.log(filename);
1615
this.fileName = filename.substring(0, filename.indexOf('.'));
1716
this.subdir = subdir;
1817
this.name = (subdir.replace(/[\/\\]/g, '-') + '-' + this.fileName).replace(/\\/g, '-'); //this is the unique name with the subDir

config.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
"tools-shortcuts": false,
2929
"tools-docs": true
3030
},
31-
"patternStates": {
32-
},
31+
"patternStates": {
32+
"homepage-emergency" : "inprogress"
33+
},
3334
"patternExportKeys": [],
3435
"patternExportDirectory": "./pattern_exports/"
3536
}

source/_patternlab-files/partials/patternNav.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</ol></li>
1010
{{/ navItems }}
1111
{{# patternItems }}
12-
<li><a href="patterns/{{ patternPath }}" class="sg-pop" data-patternpartial="{{ patternPartial }}">{{ patternName }}</a></li>
12+
<li><a href="patterns/{{ patternPath }}" class="sg-pop {{# patternState }}sg-pattern-state {{ patternState }}{{/ patternState }}"" data-patternpartial="{{ patternPartial }}">{{ patternName }}</a></li>
1313
{{/ patternItems }}
1414
</ol></li>
1515
{{/ buckets }}

0 commit comments

Comments
 (0)