Changeset 35426 for main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/TranscriptionItemEditor.vue
- Timestamp:
- 2021-09-20T10:06:23+12:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/TranscriptionItemEditor.vue
r35413 r35426 2 2 <div> 3 3 <div class="editor-controls"> 4 <audio-time-bar v-model ="currentPlaybackTime" :audio-length="2" />4 <audio-time-bar v-model.number="currentPlaybackTime" :audio-length="2" /> 5 5 6 6 <toggle-button v-model="enableEditing"> … … 125 125 } 126 126 }, 127 computed: mapState({ 128 playbackState: state => state.playbackState, 129 currentPlaybackTime: state => state.playbackState.currentTime, 130 translations: state => state.translations 131 }), 127 computed: { 128 currentPlaybackTime: { 129 get() { 130 return this.$store.state.playbackState.currentTime; 131 }, 132 set(value) { 133 this.$store.commit("setCurrentPlaybackTime", value); 134 } 135 }, 136 ...mapState({ 137 playbackState: state => state.playbackState, 138 translations: state => state.translations 139 }) 140 }, 132 141 methods: { 133 142 playAudio(startTime) {
Note:
See TracChangeset
for help on using the changeset viewer.