mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-05 07:20:13 +01:00
fix
This commit is contained in:
parent
b3c089b246
commit
42c44a2ba1
@ -36,7 +36,7 @@ document.addEventListener('DOMContentLoaded', function(){
|
||||
inputFile: false,
|
||||
loadingFileTranslation: false,
|
||||
translatedFileUrl: false,
|
||||
disableFilesTranslation: false,
|
||||
filesTranslation: true,
|
||||
},
|
||||
mounted: function(){
|
||||
var self = this;
|
||||
@ -52,7 +52,7 @@ document.addEventListener('DOMContentLoaded', function(){
|
||||
self.charactersLimit = self.settings.charLimit;
|
||||
self.suggestions = self.settings.suggestions;
|
||||
self.supportedFilesFormat = self.settings.supportedFilesFormat;
|
||||
self.disableFilesTranslation = self.settings.disableFilesTranslation;
|
||||
self.filesTranslation = self.settings.filesTranslation;
|
||||
}else {
|
||||
self.error = "Cannot load /frontend/settings";
|
||||
self.loading = false;
|
||||
|
@ -105,7 +105,7 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<h3 class="header center">Translation API</h3>
|
||||
<div class="col s12 mb-1" v-if="disableFilesTranslation === false">
|
||||
<div class="col s12 mb-1" v-if="filesTranslation === true">
|
||||
<button type="button" class="btn btn-switch-type" @click="switchType('text')" :class="{'active': translationType === 'text'}"><i class="material-icons left">title</i>Translate text</button>
|
||||
<button type="button" class="btn btn-switch-type" @click="switchType('files')" :class="{'active': translationType === 'files'}"><i class="material-icons left">description</i>Translate files</button>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user