mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
update submission templates
This commit is contained in:
1 parent
b0b4386927
commit
5d6b5ab6d7
10 files changed
+364
-77
No files matched your search
@@ -7,7 +7,7 @@ import DisableHidden from './elements/disable_hidden'
|
||||
import TurboModal from './elements/turbo_modal'
|
||||
import FileDropzone from './elements/file_dropzone'
|
||||
import MenuActive from './elements/menu_active'
|
||||
|
||||
import ClipboardCopy from './elements/clipboard_copy'
|
||||
import TemplateBuilder from './template_builder/builder'
|
||||
|
||||
document.addEventListener('turbo:before-cache', () => {
|
||||
@@ -19,6 +19,7 @@ window.customElements.define('disable-hidden', DisableHidden)
|
||||
window.customElements.define('turbo-modal', TurboModal)
|
||||
window.customElements.define('file-dropzone', FileDropzone)
|
||||
window.customElements.define('menu-active', MenuActive)
|
||||
window.customElements.define('clipboard-copy', ClipboardCopy)
|
||||
|
||||
window.customElements.define('template-builder', class extends HTMLElement {
|
||||
connectedCallback () {
|
||||
@@ -38,3 +39,7 @@ window.customElements.define('template-builder', class extends HTMLElement {
|
||||
this.appElem?.remove()
|
||||
}
|
||||
})
|
||||
|
||||
document.addEventListener('clipboard-copy', function(event) {
|
||||
console.log('Copied to clipboard') // TODO: Add a toast message
|
||||
})
|
||||
Reference in new issue
Block a user