mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-25 17:31:00 +00:00
fix
This commit is contained in:
parent
5f2d0435f2
commit
738dba7476
2 changed files with 4 additions and 4 deletions
|
@ -35,7 +35,7 @@ document.addEventListener('DOMContentLoaded', function(){
|
||||||
translationType: "text",
|
translationType: "text",
|
||||||
inputFile: false,
|
inputFile: false,
|
||||||
loadingFileTranslation: false,
|
loadingFileTranslation: false,
|
||||||
translatedFileUrl: "",
|
translatedFileUrl: false,
|
||||||
},
|
},
|
||||||
mounted: function(){
|
mounted: function(){
|
||||||
var self = this;
|
var self = this;
|
||||||
|
@ -318,7 +318,7 @@ document.addEventListener('DOMContentLoaded', function(){
|
||||||
removeFile: function(e) {
|
removeFile: function(e) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
this.inputFile = false;
|
this.inputFile = false;
|
||||||
this.translatedFileUrl = "";
|
this.translatedFileUrl = false;
|
||||||
this.loadingFileTranslation = false;
|
this.loadingFileTranslation = false;
|
||||||
},
|
},
|
||||||
translateFile: function(e) {
|
translateFile: function(e) {
|
||||||
|
|
|
@ -203,8 +203,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button @click="translateFile" v-if="translatedFileUrl === '' && loadingFileTranslation === false" class="btn">Translate</button>
|
<button @click="translateFile" v-if="translatedFileUrl === false && loadingFileTranslation === false" class="btn">Translate</button>
|
||||||
<a v-if="translatedFileUrl !== ''" :href="translatedFileUrl" class="btn">Download</a>
|
<a v-if="translatedFileUrl !== false" :href="translatedFileUrl" class="btn">Download</a>
|
||||||
<div class="progress" v-if="loadingFileTranslation">
|
<div class="progress" v-if="loadingFileTranslation">
|
||||||
<div class="indeterminate"></div>
|
<div class="indeterminate"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue