make switch type work

This commit is contained in:
Sébastien Thuret 2021-10-24 13:15:36 +02:00
parent 4e1bfd398c
commit f906a39f66
No known key found for this signature in database
GPG key ID: 4742E2D66933BB08
2 changed files with 14 additions and 5 deletions

View file

@ -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;
}
}
});