Skip to content

Commit

Permalink
Merge pull request #932 from townmi/translate
Browse files Browse the repository at this point in the history
fix(translate): fix select label not change with displayLanguage
  • Loading branch information
ipy authored Sep 6, 2019
2 parents 4b45a74 + e5e1f08 commit 4f7552e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/renderer/components/Preference.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export default {
&__tabs {
width: 110px;
height: 100%;
box-sizing: border-box;
background-color: #3B3B41;
border-right: 1px solid rgba(255,255,255,.03);
}
Expand Down
5 changes: 4 additions & 1 deletion src/renderer/containers/AudioTranslateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default Vue.extend({
},
computed: {
...mapGetters([
'currentAudioTrackId', 'mediaHash', 'audioTrackList', 'currentAudioTrackId',
'currentAudioTrackId', 'mediaHash', 'audioTrackList', 'currentAudioTrackId', 'displayLanguage',
'isTranslateModalVisible', 'translateProgress', 'isTranslating', 'selectedTargetLanugage',
'translateEstimateTime', 'translateStatus', 'lastAudioLanguage', 'failType',
]),
Expand Down Expand Up @@ -267,6 +267,9 @@ export default Vue.extend({
},
},
watch: {
displayLanguage() {
this.audioLanguage = { label: this.$t('translateModal.selectLanguageLabel'), value: '' };
},
mediaHash() {
this.audioLanguage = { label: this.$t('translateModal.selectLanguageLabel'), value: '' };
this.audioTranslateStoreInit();
Expand Down

0 comments on commit 4f7552e

Please sign in to comment.