add haptics

This commit is contained in:
Pete Matsyburka committed 2026-09-23 11:00:17 +03:00
1 parent e012b7f5ac
commit eafae4cda2
5 files changed
+10 -5

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
<% if turbo_native_app? %>
<native-action data-placement="search" data-native="search" data-label="<%= t('search') %>" data-url="<%= search_index_path(filter_params.to_h.merge({ 'scope' => 'submissions', 'template_id' => @template.id, 'archived' => ('true' if @template.archived_at?) }.compact)) %>"></native-action>
<% if !@template.archived_at? && can?(:create, Submission) %>
<native-action data-placement="footer" data-icon="send" data-label="<%= t('send_to_recipients') %>">
<native-action data-placement="footer" data-icon="send" data-haptic="true" data-label="<%= t('send_to_recipients') %>">
<a href="<%= new_template_submission_path(@template) %>" data-turbo-frame="modal" data-native-modal="<%= 'medium' if @template.submitters.size < 3 %>"></a>
</native-action>
<% end %>