forked from mirrors/LibreTranslate
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,
|
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();
|
||||||
|
|
Loading…
Reference in a new issue