Changeset 35406 for main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/TranscriptionItem.vue
- Timestamp:
- 2021-09-15T14:35:57+12:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/TranscriptionItem.vue
r35405 r35406 1 1 <template> 2 <div class="card" :class="{ 'transform-slideout-up': isDeleted }">2 <div class="card"> 3 3 <!-- Header containing info and actions for the transcription --> 4 4 <div class="transcription__header"> … … 97 97 import TranscriptionItemEditor, { getWords } from "./TranscriptionItemEditor.vue" 98 98 import { TranscriptionViewModel } from "../main"; 99 import Util from "../js/Util";100 99 101 100 export default { … … 110 109 data() { 111 110 return { 112 isDeleted: false,113 111 showEditor: false, 114 112 showDownloadOptions: false … … 126 124 }, 127 125 remove() { 128 this.isDeleted = true; 129 // Start our removal animation and give it some time to complete 130 Util.delay(550).then(() => this.$store.commit("transcriptionRemove", this.transcription.id)); 126 this.$store.commit("transcriptionRemove", this.transcription.id); 131 127 }, 132 128 downloadAsText() {
Note:
See TracChangeset
for help on using the changeset viewer.