Skip to content

Commit

Permalink
Rename nav filter config options
Browse files Browse the repository at this point in the history
  • Loading branch information
allmarkedup committed Nov 23, 2023
1 parent f64529d commit d65f6a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/views/layouts/lookbook/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<% end %>
<% end %>
<% end %>
<% if @config.preview_search %>
<% if @config.preview_nav_filter %>
<% nav.with_filter store: "$store.nav.previews.filter", placeholder: "Filter previews by name&hellip;" %>
<% end %>
<% end %>
Expand All @@ -81,7 +81,7 @@
<% end %>
<% end %>
<% end %>
<% if @config.page_search %>
<% if @config.page_nav_filter %>
<% nav.with_filter store: "$store.nav.pages.filter", placeholder: "Filter pages by name&hellip;" %>
<% end %>
<% end %>
Expand Down
4 changes: 2 additions & 2 deletions config/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ shared:
project_logo: ~

preview_collection_label: "Previews"
preview_search: true
preview_nav_filter: true
preview_paths: [test/components/previews]
preview_display_options: {}
preview_controller: "Lookbook::PreviewController"
Expand All @@ -25,7 +25,7 @@ shared:
preview_sort_scenarios: false

page_collection_label: "Pages"
page_search: false
page_nav_filter: false
page_controller: "Lookbook::PageController"
page_route: pages
page_paths: [test/components/docs]
Expand Down
8 changes: 4 additions & 4 deletions docs/src/_data/config_options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ previews:
example: config.lookbook.preview_collection_label = "Component Previews"
description: The label used to denote the previews section of the sidebar nav.

- name: preview_search
- name: preview_nav_filter
types: Boolean
default: true
example: config.lookbook.preview_search = false
example: config.lookbook.preview_nav_filter = false
description: Whether or not to show a search/filter box for previews

- name: preview_paths
Expand Down Expand Up @@ -111,10 +111,10 @@ pages:
example: config.lookbook.page_collection_label = "Docs"
description: The label used to denote the pages section of the sidebar nav.

- name: page_search
- name: page_nav_filter
types: Boolean
default: false
example: config.lookbook.page_search = false
example: config.lookbook.page_nav_filter = false
description: Whether or not to show a search/filter box for pages

- name: page_paths
Expand Down

0 comments on commit d65f6a8

Please sign in to comment.