From 57f8f45320a9abf4149f52f934d890c105c929b4 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Mon, 26 Aug 2024 11:30:52 +0300 Subject: [PATCH] archived template preview --- app/javascript/application.js | 2 ++ app/javascript/template_builder/builder.vue | 12 ++++++++++++ app/views/templates/_title.html.erb | 14 +++++++++++--- app/views/templates/edit.html.erb | 2 +- app/views/templates_preview/show.html.erb | 2 +- 5 files changed, 27 insertions(+), 5 deletions(-) diff --git a/app/javascript/application.js b/app/javascript/application.js index 9690f241..098ea339 100644 --- a/app/javascript/application.js +++ b/app/javascript/application.js @@ -107,6 +107,8 @@ safeRegisterElement('template-builder', class extends HTMLElement { withPayment: this.dataset.withPayment === 'true', isPaymentConnected: this.dataset.isPaymentConnected === 'true', withFormula: this.dataset.withFormula === 'true', + withSendButton: this.dataset.withSendButton !== 'false', + withSignYourselfButton: this.dataset.withSignYourselfButton !== 'false', withConditions: this.dataset.withConditions === 'true', currencies: (this.dataset.currencies || '').split(',').filter(Boolean), acceptFileTypes: this.dataset.acceptFileTypes diff --git a/app/javascript/template_builder/builder.vue b/app/javascript/template_builder/builder.vue index 343f0673..812b233b 100644 --- a/app/javascript/template_builder/builder.vue +++ b/app/javascript/template_builder/builder.vue @@ -58,6 +58,7 @@ />