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

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

@ -6,10 +6,6 @@
const handleSelection = (event)=>{ const handleSelection = (event)=>{
emit('update', event.target.value) emit('update', event.target.value)
} }
/*watch(() => props.currentWorkingCategory, (newValue)=>{*/
/*const newCategory = props.categories.find(category => category.id == newValue)*/
/*chosenInstrument.value = newCategory.instrument*/
/*})*/
</script> </script>
<template> <template>
<select v-model="currentWorkingCategory.instrument"> <select v-model="currentWorkingCategory.instrument">
@ -24,25 +20,4 @@
{{category.category}} {{category.category}}
</option> </option>
</select> </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> </template>

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

Loading…
Cancel
Save