Skip to content

Commit dd94371

Browse files
committed
fix #621
1 parent 86b273b commit dd94371

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG.md
22

3+
## 0.30.0 (unreleased)
4+
5+
- **Fix**: the search feature in the shell component was not working when no menu item was defined.
6+
37
## 0.29.0 (2024-09-25)
48
- New columns component: `columns`. Useful to display a comparison between items, or large key figures to an user.
59
- ![screenshot](https://github.com/user-attachments/assets/89e4ac34-864c-4427-a926-c38e9bed3f86)

sqlpage/templates/shell.handlebars

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158

159159
<body class="layout-{{#if sidebar}}fluid{{else}}{{default layout 'boxed'}}{{/if}}" {{#if theme}}data-bs-theme="{{theme}}" {{/if}}>
160160
<div class="page">
161-
{{#if (or (or title (or icon image)) menu_item)}}
161+
{{#if (or (or title (or icon image)) (or menu_item search_target))}}
162162
<header id="sqlpage_header">
163163
{{#if sidebar}}
164164
<aside class="navbar navbar-vertical navbar-expand-lg" {{#if sidebar_theme}}data-bs-theme="{{sidebar_theme}}" {{/if}}>
@@ -196,7 +196,7 @@
196196
<h1 class="mb-0 fs-2 text-truncate flex-grow-1" style="flex-basis:0">
197197
<a class="text-decoration-none" href="{{#if link}}{{link}}{{else}}/{{/if}}">{{default navbar_title title}}</a>
198198
</h1>
199-
{{#if menu_item}}
199+
{{#if (or menu_item search_target)}}
200200
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-menu" aria-controls="navbar-menu" aria-expanded="false" aria-label="Toggle navigation">
201201
<span class="navbar-toggler-icon"></span>
202202
</button>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
select 'shell' as component,
2+
'/' as search_target,
3+
'It works !' as search_value;

0 commit comments

Comments
 (0)