|
|
|
|
@ -3,8 +3,6 @@
|
|
|
|
|
|
|
|
|
|
const micThresholdExceeded = defineModel('micThresholdExceeded')
|
|
|
|
|
const timerRunning = defineModel('timerRunning')
|
|
|
|
|
const currentWorkingCategory = defineModel('currentWorkingCategory')
|
|
|
|
|
const currentWorkingInstrument = defineModel('currentWorkingInstrument')
|
|
|
|
|
|
|
|
|
|
const props = defineProps(['categories', 'instruments'])
|
|
|
|
|
|
|
|
|
|
@ -27,7 +25,7 @@
|
|
|
|
|
|
|
|
|
|
import CategoryChooser from './category_chooser.vue'
|
|
|
|
|
import { getHours, getMinutes, createTimeObj, getAccumulatedSeconds, formatSeconds } from '../libs/time.js'
|
|
|
|
|
import { copiedSongs } from '../libs/state.js'
|
|
|
|
|
import { copiedSongs, currentWorkingCategory, currentWorkingInstrument } from '../libs/state.js'
|
|
|
|
|
|
|
|
|
|
const description = ref('')
|
|
|
|
|
|
|
|
|
|
@ -63,7 +61,7 @@
|
|
|
|
|
const reqBody = {
|
|
|
|
|
description:description.value,
|
|
|
|
|
seconds: this.totalSeconds,
|
|
|
|
|
practice_category_id: this.currentWorkingCategory.id
|
|
|
|
|
practice_category_id: currentWorkingCategory.value.id
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(reqBody.description && copiedSongs.value.length > 0){
|
|
|
|
|
@ -193,7 +191,7 @@
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.practice_category_id = this.currentWorkingCategory.id
|
|
|
|
|
this.practice_category_id = currentWorkingCategory.value.id
|
|
|
|
|
if(window.localStorage.getItem('lastTotalSeconds')){
|
|
|
|
|
this.totalSeconds = parseInt(window.localStorage.getItem('lastTotalSeconds'))
|
|
|
|
|
} else {
|
|
|
|
|
@ -231,8 +229,6 @@
|
|
|
|
|
|
|
|
|
|
<label>Practice Category</label>
|
|
|
|
|
<CategoryChooser
|
|
|
|
|
v-model:currentWorkingCategory="currentWorkingCategory"
|
|
|
|
|
v-model:currentWorkingInstrument="currentWorkingInstrument"
|
|
|
|
|
:instruments="instruments"
|
|
|
|
|
:categories="categories" />
|
|
|
|
|
<input type="submit"/>
|
|
|
|
|
|