mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-12-22 23:26:31 +00:00
Fix frontendTimeout
This commit is contained in:
parent
5eccc20daf
commit
74e2823658
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue