Fix frontendTimeout

This commit is contained in:
Piero Toffanin 2022-01-31 10:19:14 -05:00
parent 5eccc20daf
commit 74e2823658

View file

@ -37,6 +37,7 @@ document.addEventListener('DOMContentLoaded', function(){
loadingFileTranslation: false, loadingFileTranslation: false,
translatedFileUrl: false, translatedFileUrl: false,
filesTranslation: true, filesTranslation: true,
frontendTimeout: 500
}, },
mounted: function(){ mounted: function(){
var self = this; var self = this;
@ -53,6 +54,7 @@ document.addEventListener('DOMContentLoaded', function(){
self.suggestions = self.settings.suggestions; self.suggestions = self.settings.suggestions;
self.supportedFilesFormat = self.settings.supportedFilesFormat; self.supportedFilesFormat = self.settings.supportedFilesFormat;
self.filesTranslation = self.settings.filesTranslation; self.filesTranslation = self.settings.filesTranslation;
self.frontendTimeout = self.setttings.frontendTimeout;
}else { }else {
self.error = "Cannot load /frontend/settings"; self.error = "Cannot load /frontend/settings";
self.loading = false; self.loading = false;
@ -248,7 +250,7 @@ document.addEventListener('DOMContentLoaded', function(){
}; };
request.send(data); request.send(data);
}, '{{ frontendTimeout }}'); }, self.frontendTimeout);
}, },
copyText: function(e){ copyText: function(e){
e.preventDefault(); e.preventDefault();