Skip to content

Commit 9412033

Browse files
sijucjlovasoa
authored andcommitted
feat: open a new tab when clicking on the menu and submenu.
1 parent 9fd2961 commit 9412033

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sqlpage/templates/shell.handlebars

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
<li class="nav-item{{#if this.submenu}} dropdown{{/if}}">
9393
<a class="nav-link {{#if this.submenu}}dropdown-toggle{{/if}}" href="{{#if this.link}}{{this.link}}{{else}}#{{/if}}"
9494
{{~#if this.submenu}} data-bs-toggle="dropdown" data-bs-auto-close="outside" {{/if~}}
95+
{{#if this.target}}target="{{this.target}}"{{/if}}
9596
role="button"
9697
>
9798
{{~#if this.image~}}
@@ -114,7 +115,7 @@
114115
<div class="dropdown-menu dropdown-menu-end" data-bs-popper="static">
115116
{{~#each this.submenu~}}
116117
{{#if (or (or this.title this.icon) this.image)}}
117-
<a class="dropdown-item" href="{{this.link}}">
118+
<a class="dropdown-item" href="{{this.link}}" {{#if this.target}}target="{{this.target}}"{{/if}}>
118119
{{~#if this.image~}}
119120
<span {{~#if this.title}} class="me-1"{{/if}}>
120121
{{~#if (eq ../this.size 'sm')}}

0 commit comments

Comments
 (0)