|
|
|
|
@ -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>
|
|
|
|
|
|