category chooser mostly works in timer

practiced-songs
Matthew Huntington 1 year ago
parent 654bc1168d
commit 7d275bdc2b

@ -146,8 +146,8 @@
return false return false
} }
}, },
handleCategoryChange(chosenCategory){ handleCategoryChange(chosenCategoryID){
this.practice_category_id = chosenCategory.id this.practice_category_id = chosenCategoryID
} }
}, },
mounted() { mounted() {
@ -158,8 +158,8 @@
window.onbeforeunload = this.confirmClose window.onbeforeunload = this.confirmClose
}, },
watch: { watch: {
currentWorkingCategory(chosenCategory){ currentWorkingCategory(chosenCategoryID){
this.practice_category_id = chosenCategory.id this.practice_category_id = chosenCategoryID
} }
} }
} }
@ -178,6 +178,7 @@
<button :disabled="running || totalSeconds === 0" @click="reset">Reset</button> <button :disabled="running || totalSeconds === 0" @click="reset">Reset</button>
</div> </div>
<form @submit="submit"> <form @submit="submit">
{{practice_category_id}}
<label>Description</label> <label>Description</label>
<input v-model="description" type="text" maxlength="128"/> <input v-model="description" type="text" maxlength="128"/>

Loading…
Cancel
Save