From b806a6afc51b8073b30f05efe2071f774ac69b91 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Wed, 21 Aug 2024 20:03:33 +0300 Subject: [PATCH] disable decline button --- app/javascript/submission_form/completed.vue | 4 ++++ app/views/shared/_html_modal.html.erb | 2 +- app/views/submit_form/show.html.erb | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/javascript/submission_form/completed.vue b/app/javascript/submission_form/completed.vue index fd970c45..00310eb4 100644 --- a/app/javascript/submission_form/completed.vue +++ b/app/javascript/submission_form/completed.vue @@ -181,6 +181,10 @@ export default { spread: 140 }) } + + if (window.decline_button) { + window.decline_button.setAttribute('disabled', 'true') + } }, methods: { sendCopyToEmail () { diff --git a/app/views/shared/_html_modal.html.erb b/app/views/shared/_html_modal.html.erb index a966b195..1c104043 100644 --- a/app/views/shared/_html_modal.html.erb +++ b/app/views/shared/_html_modal.html.erb @@ -1,5 +1,5 @@ <% uuid = SecureRandom.uuid %> - +