1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2024-11-24 08:02:18 +02:00

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,
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();