Ignore:
Timestamp:
2021-10-15T10:50:08+13:00 (3 years ago)
Author:
cstephen
Message:

Fix last

File:
1 edited

Legend:

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

    r35602 r35603  
    123123        }
    124124    },
    125     emits: [ "update:surroundingWords" ],
     125    emits: [ "wordUpdated" ],
    126126    computed: {
    127127        word() {
     
    338338        },
    339339        updateSurroundingWords() {
    340             const updatedWords = [];
    341 
    342340            for (let i = 0; i < this.mySurroundingWords.length; i++) {
    343                 updatedWords.push(
    344                     this.convertMyWord(this.mySurroundingWords[i], this.surroundingWords[i])
    345                 );
    346             }
    347 
    348             console.log(updatedWords);
    349             this.$emit("update:surroundingWords", updatedWords);
     341                const updatedWord = this.convertMyWord(this.mySurroundingWords[i], this.surroundingWords[i]);
     342                this.$emit("wordUpdated", i, updatedWord);
     343            }
    350344        },
    351345        convertMyWord(myWord, actualWord) {
Note: See TracChangeset for help on using the changeset viewer.