From 74e282365813cd45d66fa5cf2b0e6c7168b19659 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Mon, 31 Jan 2022 10:19:14 -0500 Subject: [PATCH] Fix frontendTimeout --- app/static/js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/static/js/app.js b/app/static/js/app.js index 1aae371..a6f0c44 100644 --- a/app/static/js/app.js +++ b/app/static/js/app.js @@ -37,6 +37,7 @@ document.addEventListener('DOMContentLoaded', function(){ loadingFileTranslation: false, translatedFileUrl: false, filesTranslation: true, + frontendTimeout: 500 }, mounted: function(){ var self = this; @@ -53,6 +54,7 @@ document.addEventListener('DOMContentLoaded', function(){ self.suggestions = self.settings.suggestions; self.supportedFilesFormat = self.settings.supportedFilesFormat; self.filesTranslation = self.settings.filesTranslation; + self.frontendTimeout = self.setttings.frontendTimeout; }else { self.error = "Cannot load /frontend/settings"; self.loading = false; @@ -248,7 +250,7 @@ document.addEventListener('DOMContentLoaded', function(){ }; request.send(data); - }, '{{ frontendTimeout }}'); + }, self.frontendTimeout); }, copyText: function(e){ e.preventDefault();