mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
add haptics
This commit is contained in:
1 parent
e012b7f5ac
commit
eafae4cda2
5 files changed
+10
-5
No files matched your search
@@ -31,7 +31,8 @@ export default class extends HTMLElement {
|
||||
url: this.dataset.url,
|
||||
accept: this.dataset.accept,
|
||||
destructive: this.dataset.destructive === 'true',
|
||||
selected: this.dataset.selected === 'true'
|
||||
selected: this.dataset.selected === 'true',
|
||||
haptic: this.dataset.haptic === 'true'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,8 @@ export default class extends HTMLElement {
|
||||
title: action.dataset.label || target.textContent.trim(),
|
||||
icon: action.dataset.icon,
|
||||
destructive: action.dataset.destructive === 'true',
|
||||
selected: action.dataset.selected === 'true'
|
||||
selected: action.dataset.selected === 'true',
|
||||
haptic: action.dataset.haptic === 'true'
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -768,6 +768,7 @@
|
||||
data-side="leading"
|
||||
data-icon="files"
|
||||
data-native="drawer"
|
||||
data-haptic="true"
|
||||
:data-label="t('documents')"
|
||||
data-view="documents"
|
||||
/>
|
||||
@@ -777,11 +778,13 @@
|
||||
data-side="trailing"
|
||||
data-icon="plus"
|
||||
data-native="drawer"
|
||||
data-haptic="true"
|
||||
:data-label="'Fields'"
|
||||
data-view="fields"
|
||||
/>
|
||||
<native-action
|
||||
v-if="nativePlatform && (drawField || drawCustomField) && (isBreakpointLg || isMobile)"
|
||||
:key="drawCustomField?.uuid || drawField?.uuid"
|
||||
data-placement="draw"
|
||||
:data-label="t('draw_field').replace('{field}', drawCustomField ? drawCustomField.name : fieldNames[drawField.type])"
|
||||
>
|
||||
|
||||
@@ -369,8 +369,8 @@
|
||||
<% end %>
|
||||
</div>
|
||||
<% if native_tab == 'document' %>
|
||||
<native-action data-placement="tab" data-native="tab" data-label="<%= t('document') %>" data-selected="true"></native-action>
|
||||
<native-action data-placement="tab" data-native="tab" data-label="<%= t('recipients') %>" data-url="<%= tab_submission_path(@submission, tab: 'recipients') %>"></native-action>
|
||||
<native-action data-placement="tab" data-native="tab" data-label="<%= t('document') %>" data-haptic="true" data-selected="true"></native-action>
|
||||
<native-action data-placement="tab" data-native="tab" data-label="<%= t('recipients') %>" data-haptic="true" data-url="<%= tab_submission_path(@submission, tab: 'recipients') %>"></native-action>
|
||||
<% elsif !native_tab %>
|
||||
<toggle-visible data-element-ids="<%= %w[document_view parties_view].to_json %>">
|
||||
<label class="md:hidden btn btn-sm btn-neutral text-white text-base z-10 fixed bottom-2 right-2 h-16 shadow-lg">
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
Reference in new issue
Block a user