diff --git a/app/javascript/application.js b/app/javascript/application.js index 9c23a4cf..c5ae487d 100644 --- a/app/javascript/application.js +++ b/app/javascript/application.js @@ -89,6 +89,7 @@ window.customElements.define('template-builder', class extends HTMLElement { withPhone: this.dataset.withPhone === 'true', withLogo: this.dataset.withLogo !== 'false', withPayment: this.dataset.withPayment === 'true', + currencies: (this.dataset.currencies || '').split(',').filter(Boolean), acceptFileTypes: this.dataset.acceptFileTypes, isDirectUpload: this.dataset.isDirectUpload === 'true' }) diff --git a/app/javascript/template_builder/builder.vue b/app/javascript/template_builder/builder.vue index 7672e07f..db6cd91f 100644 --- a/app/javascript/template_builder/builder.vue +++ b/app/javascript/template_builder/builder.vue @@ -304,6 +304,7 @@ export default { template: this.template, save: this.save, t: this.t, + currencies: this.currencies, baseFetch: this.baseFetch, fieldTypes: this.fieldTypes, backgroundColor: this.backgroundColor, @@ -352,6 +353,11 @@ export default { required: false, default: () => [] }, + currencies: { + type: Array, + required: false, + default: () => [] + }, fieldTypes: { type: Array, required: false, diff --git a/app/javascript/template_builder/payment_settings.vue b/app/javascript/template_builder/payment_settings.vue index 08f8dfa7..7e98525a 100644 --- a/app/javascript/template_builder/payment_settings.vue +++ b/app/javascript/template_builder/payment_settings.vue @@ -31,7 +31,7 @@ @change="save" >