Skip to content

Commit cf4f092

Browse files
#1143 don't show all page if noViewall is active
1 parent cf96cb0 commit cf4f092

File tree

1 file changed

+14
-13
lines changed
  • packages/uikit-workshop/src/scripts/components/pl-nav

1 file changed

+14
-13
lines changed

packages/uikit-workshop/src/scripts/components/pl-nav/pl-nav.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -307,19 +307,20 @@ class Nav extends BaseComponent {
307307
{(window.ishControls === undefined ||
308308
window.ishControls.ishControlsHide === undefined ||
309309
(window.ishControls.ishControlsHide['views-all'] !== true &&
310-
window.ishControls.ishControlsHide.all !== true)) && (
311-
<NavItem>
312-
<a
313-
onClick={e => this.handleClick(e, 'all')}
314-
href="styleguide/html/styleguide.html"
315-
class="pl-c-nav__link pl-c-nav__link--pattern"
316-
data-patternpartial="all"
317-
tabindex="0"
318-
>
319-
All
320-
</a>
321-
</NavItem>
322-
)}
310+
window.ishControls.ishControlsHide.all !== true)) &&
311+
!this.noViewAll && (
312+
<NavItem>
313+
<a
314+
onClick={e => this.handleClick(e, 'all')}
315+
href="styleguide/html/styleguide.html"
316+
class="pl-c-nav__link pl-c-nav__link--pattern"
317+
data-patternpartial="all"
318+
tabindex="0"
319+
>
320+
All
321+
</a>
322+
</NavItem>
323+
)}
323324
</ol>
324325
);
325326
}

0 commit comments

Comments
 (0)