refactor templates controller

This commit is contained in:
Pete Matsyburka committed 2024-03-23 23:52:49 +02:00
1 parent 715c70d422
commit 077eab7005
10 files changed
+75 -60

No files matched your search

+1
View File
@@ -91,6 +91,7 @@ window.customElements.define('template-builder', class extends HTMLElement {
withPhone: this.dataset.withPhone === 'true',
withLogo: this.dataset.withLogo !== 'false',
editable: this.dataset.editable !== 'false',
authenticityToken: document.querySelector('meta[name="csrf-token"]')?.content,
withPayment: this.dataset.withPayment === 'true',
withFormula: this.dataset.withFormula === 'true',
withConditions: this.dataset.withConditions === 'true',