Skip to content

Commit a226efb

Browse files
author
Antonino Tramontana
committed
modified Control.vue
1 parent 5b2ad6c commit a226efb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/components/Control.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,21 @@ export default {
156156
157157
}.bind(this))
158158
},
159+
play_note(){
160+
let CBv1 = this.CBv1
161+
let axios = this.$axios;
162+
axios.get(CBv1 + '/bot', { params: { 'cmd' : 'play_note'}})
163+
.then(function(response){
164+
this.ttsBtnEnabled = false
165+
this.ttsdialog = false
166+
this.snackText = 'Nota in riproduzione'
167+
this.snackbar = true
168+
setTimeout(function() {
169+
this.ttsBtnEnabled = true
170+
}.bind(this), 800)
171+
}.bind(this))
172+
},
173+
159174
videoHandler() {
160175
if (this.videoBtn.action == 'record')
161176
this.recordVideo()

0 commit comments

Comments
 (0)