mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
ui fixes
This commit is contained in:
1 parent
79aa034183
commit
d071e8c429
5 files changed
+17
-5
No files matched your search
@@ -57,11 +57,23 @@ if (handlers?.native && window === window.top) {
|
||||
const reportPathConfiguration = () => {
|
||||
const element = document.getElementById('native_path_configuration')
|
||||
|
||||
if (element) handlers.native.postMessage({ type: 'path-configuration', json: element.textContent })
|
||||
if (!element) return
|
||||
|
||||
const config = JSON.parse(element.textContent)
|
||||
|
||||
config.rules.forEach(({ properties }) => {
|
||||
if (properties.native_actions) properties.native_actions = properties.native_actions.map(nativeIcon)
|
||||
})
|
||||
|
||||
handlers.native.postMessage({ type: 'path-configuration', json: JSON.stringify(config) })
|
||||
}
|
||||
|
||||
document.addEventListener('turbo:load', reportPathConfiguration)
|
||||
|
||||
document.addEventListener('turbo:before-cache', () => {
|
||||
document.getElementById('native_path_configuration')?.remove()
|
||||
})
|
||||
|
||||
reportPathConfiguration()
|
||||
|
||||
const reportFlash = (element) => {
|
||||
|
||||
Reference in new issue
Block a user