From 505b185cf2b7a142db3648bb8552b738c0e68e4d Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Sun, 31 Mar 2024 18:31:09 +0300 Subject: [PATCH] fix download indicator --- app/javascript/submission_form/completed.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/javascript/submission_form/completed.vue b/app/javascript/submission_form/completed.vue index d8aadd72..4bb4ea54 100644 --- a/app/javascript/submission_form/completed.vue +++ b/app/javascript/submission_form/completed.vue @@ -212,9 +212,9 @@ export default { fileRequests.reduce( (prevPromise, request) => prevPromise.then(() => request()), Promise.resolve() - ) - - this.isDownloading = false + ).finally(() => { + this.isDownloading = false + }) }, sanitizeHref (href) { if (href && href.trim().match(/^((?:https?:\/\/)|\/)/)) {