Changeset 35528
- Timestamp:
- 2021-09-29T15:47:16+13:00 (3 years ago)
- Location:
- main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/TranscriptionItem.vue
r35489 r35528 124 124 const fileName = buildDownloadableFileName(this.transcription.fileName, "txt"); 125 125 126 const blob = new Blob([ this. transcription.transcription], { type: "text/plain;charset=utf-8" });126 const blob = new Blob([ this.$refs.editor.words.map(w => w.word).join(" ") ], { type: "text/plain;charset=utf-8" }); 127 127 saveAs(blob, fileName); 128 128 }, -
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/TranscriptionItemEditor.vue
r35525 r35528 20 20 </div> 21 21 22 <word-timing-selector class="word-timing-selector" :surroundingWords="surroundingWords" :word="selectedWord" />22 <word-timing-selector class="word-timing-selector" :surroundingWords="surroundingWords" :word="selectedWord" v-if="isProduction" /> 23 23 24 24 <div class="editor-controls"> … … 132 132 words: [], 133 133 lastHighlightedWordIndex: 0, 134 selectedIndex: 0 134 selectedIndex: 0, 135 isProduction: false 135 136 } 136 137 }, … … 369 370 beforeMount() { 370 371 this.words = getWords(this.transcription); 372 this.isProduction = process.env.NODE_ENV !== "production"; 371 373 } 372 374 }
Note:
See TracChangeset
for help on using the changeset viewer.