practiced-songs
Matthew Huntington 1 year ago
parent a8dd2274d1
commit b51a8f4746

@ -38,13 +38,11 @@
<main>
<section id="timer">
<Status ref="statusRef"/>
<!--
<Timer
@loggedTime="refreshPage"
:categories="categories"
:instruments="instruments"
:currentWorkingCategory="currentWorkingCategory"/>
-->
</section>
<section id="summary">
<Summary ref="summaryRef" @update="updateCurrentWorkingCategory"/>

@ -6,10 +6,6 @@
const handleSelection = (event)=>{
emit('update', event.target.value)
}
/*watch(() => props.currentWorkingCategory, (newValue)=>{*/
/*const newCategory = props.categories.find(category => category.id == newValue)*/
/*chosenInstrument.value = newCategory.instrument*/
/*})*/
</script>
<template>
<select v-model="currentWorkingCategory.instrument">
@ -24,25 +20,4 @@
{{category.category}}
</option>
</select>
<!--
<select v-model="currentWorkingCategory.instrument">
<option v-for="instrument in props.instruments" v-bind:value="instrument.name">
{{instrument.name}}
</option>
</select>
<select
@change="handleSelection"
v-for="instrument in props.instruments"
v-model="props.currentWorkingCategory"
v-show="instrument.name == chosenInstrument">
<option
v-bind:value="category.id"
v-for="category in props.categories"
:key="category.id"
v-show="category.instrument == instrument.name"
:selected="category.instrument == instrument.name">
{{category.category}}
</option>
</select>
-->
</template>

@ -6,8 +6,6 @@
const categorySessions = ref([])
/*const { currentWorkingCategory } = toRefs(props);*/
const change = async (event) => {
const response = await fetch(import.meta.env.VITE_PRACTICE_TRACKER_API_URL+'show-category/'+event.target.value)
categorySessions.value = await response.json()

Loading…
Cancel
Save