mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
add submissions dashboard view
This commit is contained in:
1 parent
5bb7ad571c
commit
2dba8ae366
20 files changed
+520
-269
No files matched your search
@@ -0,0 +1,17 @@
|
||||
export default class extends HTMLElement {
|
||||
connectedCallback () {
|
||||
this.button.addEventListener('click', () => {
|
||||
const expirationDate = new Date()
|
||||
|
||||
expirationDate.setFullYear(expirationDate.getFullYear() + 10)
|
||||
|
||||
const expires = expirationDate.toUTCString()
|
||||
|
||||
document.cookie = this.dataset.key + '=' + this.dataset.value + '; expires=' + expires + '; path=/'
|
||||
})
|
||||
}
|
||||
|
||||
get button () {
|
||||
return this.querySelector('button')
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user