app/components/satis/menu_item/component.html.slim in satis-1.0.67 vs app/components/satis/menu_item/component.html.slim in satis-1.0.68
- old
+ new
@@ -1,10 +1,14 @@
li.rounded-sm.px-3.py-1.hover:bg-gray-100.dark:hover:bg-gray-200.flex.items-center data-controller="satis-menu" data-action="mouseover->satis-menu#show mouseleave->satis-menu#hide"
a.cursor-pointer.py-1.w-full.text-left.flex.items-center.outline-none.focus:outline-none href=item.link *item.link_attributes
+ - if item.type == :custom
+ = render(partial: item.link_attributes[:data][:path], locals: item.link_attributes[:data][:parameters])
span.pr-1.flex-shrink-0.w-6
- if item.icon.present?
i class=item.icon
- span.pr-1.flex-1 = item.label
+ span.pr-1.flex-1
+ - unless item.type == :custom
+ = item.label
span.pr-1.flex-shrink-0.w-6
- if item.type == :toggle
i.fal.fa-check.hidden data-satis-menu-target="toggle" id="#{item.id}"
- if item.menu