mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-31 11:52:20 +00:00
make switch type work
This commit is contained in:
parent
4e1bfd398c
commit
f906a39f66
2 changed files with 14 additions and 5 deletions
|
@ -30,6 +30,8 @@ document.addEventListener('DOMContentLoaded', function(){
|
|||
|
||||
suggestions: false,
|
||||
isSuggesting: false,
|
||||
|
||||
translationType: "text"
|
||||
},
|
||||
mounted: function(){
|
||||
var self = this;
|
||||
|
@ -299,6 +301,10 @@ document.addEventListener('DOMContentLoaded', function(){
|
|||
deleteText: function(e){
|
||||
e.preventDefault();
|
||||
this.inputText = this.translatedText = this.output = "";
|
||||
},
|
||||
switchType: function(type) {
|
||||
console.log(type)
|
||||
this.translationType = type;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue