fix enable shared link

This commit is contained in:
Pete Matsyburka committed 2026-10-28 09:33:46 +02:00
1 parent 349c0b0537
commit 8334b612a8
1 file changed
+1 -1
@@ -4,7 +4,7 @@
</p>
<% if can?(:update, @template) %>
<toggle-submit class="block">
<%= button_to button_title(title: t('enable_shared_link'), icon: svg_icon('lock_open', class: 'w-6 h-6')), template_share_link_path(@template), params: { template: { shared_link: true }, redir: template_share_link_qr_path(@template) }, method: :post, data: { turbo: false }, class: 'base-button w-full' %>
<%= button_to button_title(title: t('enable_shared_link'), icon: svg_icon('lock_open', class: 'w-6 h-6')), template_share_link_path(@template), params: { template: { shared_link: true }, redir: template_share_link_qr_path(@template) }, method: :post, class: 'base-button w-full' %>
</toggle-submit>
<% end %>
</div>