loggin hours works again

practiced-songs
Matthew Huntington 1 year ago
parent ab6a9425d0
commit 8aaa97fbb8

@ -39,7 +39,7 @@
const reqBody = { const reqBody = {
description:this.description, description:this.description,
seconds: this.totalSeconds, seconds: this.totalSeconds,
practice_category_id: this.practice_category_id practice_category_id: this.currentWorkingCategory.id
} }
if(this.comments){ if(this.comments){
@ -150,9 +150,6 @@
return false return false
} }
}, },
handleCategoryChange(chosenCategoryID){
this.practice_category_id = chosenCategoryID
}
}, },
mounted() { mounted() {
this.practice_category_id = this.currentWorkingCategory.id this.practice_category_id = this.currentWorkingCategory.id
@ -161,11 +158,6 @@
this.savedPreviousSeconds = this.totalSeconds this.savedPreviousSeconds = this.totalSeconds
window.onbeforeunload = this.confirmClose window.onbeforeunload = this.confirmClose
}, },
watch: {
currentWorkingCategory(chosenCategory){
this.practice_category_id = chosenCategory.id
}
}
} }
</script> </script>

Loading…
Cancel
Save