Skip to content

Commit

Permalink
Prepended a default language option and modified the selected languag…
Browse files Browse the repository at this point in the history
…e to store
  • Loading branch information
untari committed Jul 9, 2024
1 parent dd304a4 commit bf35e4b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions webapp/src/views/rooms/item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export default {
// Populate languages from the languages added by the admin
if (this.modules['livestream.youtube'] && this.modules['livestream.youtube'].config.languageUrls) {
this.languages = this.modules['livestream.youtube'].config.languageUrls;
this.languages.unshift({language: 'Default', url: `https://www.youtube.com/watch?v=${this.modules['livestream.youtube'].config.ytid}`})
}
},
methods: {
Expand All @@ -97,9 +98,7 @@ export default {
this.unreadTabs[tab] = true
},
handleLanguageChange(selectedLanguage) {
// Logic to handle the change in audio translation
console.log('Selected language:', selectedLanguage);
// Additional logic can be added here to update the streaming settings or perform other actions
this.$store.commit('updateYoutubeTransAudio', selectedLanguage)
}
}
}
Expand Down

0 comments on commit bf35e4b

Please sign in to comment.