Skip to content

Commit e6c672d

Browse files
committed
add watcher
1 parent 26f63ff commit e6c672d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

vueapp/components/Videos/Actions/VideoDownload.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,5 +291,15 @@ export default {
291291
this.selectedMedia = this.tuned_presentations[0];
292292
}
293293
},
294+
watch: {
295+
selectedSource(newSource) {
296+
if (newSource === 'presenter') {
297+
this.selectedMedia = this.tuned_presenters[0];
298+
}
299+
if (newSource === 'presentation') {
300+
this.selectedMedia = this.tuned_presentations[0];
301+
}
302+
}
303+
}
294304
};
295305
</script>

0 commit comments

Comments
 (0)