Ignore:
Timestamp:
2021-09-20T10:06:23+12:00 (3 years ago)
Author:
cstephen
Message:

Improve audio time bar implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/TranscriptionItemEditor.vue

    r35413 r35426  
    22<div>
    33    <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" />
    55
    66        <toggle-button v-model="enableEditing">
     
    125125        }
    126126    },
    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    },
    132141    methods: {
    133142        playAudio(startTime) {
Note: See TracChangeset for help on using the changeset viewer.