Skip to content

Commit

Permalink
chore(wiki-settings): hide_sidebar_items -> collapse_sidebar_groups
Browse files Browse the repository at this point in the history
  • Loading branch information
BreadGenie committed Nov 22, 2023
1 parent bf74b0e commit 7e68702
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions wiki/wiki/doctype/wiki_page/templates/web_sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
</svg>
</span>
<span
class='drop-icon {% if hide_sidebar_items and sidebar_group != active_sidebar_group %}rotate{% endif %}'>
class='drop-icon {% if collapse_sidebar_groups and sidebar_group != active_sidebar_group %}rotate{% endif %}'>
<svg width="16" height="20" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M4 8.53967L4 3.46033C4 3.05582 4.45534 2.81874 4.78673 3.05071L8.41483 5.59038C8.69919 5.78943 8.69919 6.21057 8.41483 6.40962L4.78673 8.94929C4.45534 9.18126 4 8.94418 4 8.53967Z"
fill="currentColor"></path>
</svg>
</span>
</div>
<ul class="list-unstyled {% if hide_sidebar_items and sidebar_group != active_sidebar_group %}hidden{% endif %}"
<ul class="list-unstyled {% if collapse_sidebar_groups and sidebar_group != active_sidebar_group %}hidden{% endif %}"
style="min-height: 20px;">
{% for item in sidebar_items[sidebar_group] -%}
{{ render_sidebar_item(item) }}
Expand Down
16 changes: 8 additions & 8 deletions wiki/wiki/doctype/wiki_settings/wiki_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"section_break_vefv",
"default_wiki_space",
"table_of_contents_section",
"hide_sidebar_items",
"collapse_sidebar_groups",
"enable_table_of_contents",
"section_break_mmtu",
"javascript",
Expand Down Expand Up @@ -106,12 +106,6 @@
"fieldtype": "Check",
"label": "Enable Table of Contents"
},
{
"default": "0",
"fieldname": "hide_sidebar_items",
"fieldtype": "Check",
"label": "Hide Sidebar Items"
},
{
"fieldname": "section_break_skhp",
"fieldtype": "Section Break"
Expand All @@ -128,12 +122,18 @@
"fieldname": "use_redisearch_for_search",
"fieldtype": "Check",
"label": "Use Redisearch for Search"
},
{
"default": "0",
"fieldname": "collapse_sidebar_groups",
"fieldtype": "Check",
"label": "Collapse Sidebar Groups"
}
],
"index_web_pages_for_search": 1,
"issingle": 1,
"links": [],
"modified": "2023-06-27 23:00:42.995242",
"modified": "2023-11-22 22:46:30.514623",
"modified_by": "Administrator",
"module": "Wiki",
"name": "Wiki Settings",
Expand Down

0 comments on commit 7e68702

Please sign in to comment.