|
|
|
|
@ -1,4 +1,6 @@
|
|
|
|
|
<script setup>
|
|
|
|
|
import { defineProps } from 'vue';
|
|
|
|
|
|
|
|
|
|
const props = defineProps(['instruments', 'categories'])
|
|
|
|
|
const currentWorkingCategory = defineModel('currentWorkingCategory')
|
|
|
|
|
const currentWorkingInstrument = defineModel('currentWorkingInstrument')
|
|
|
|
|
@ -16,9 +18,8 @@
|
|
|
|
|
</select>
|
|
|
|
|
<select v-model="currentWorkingCategory">
|
|
|
|
|
<option
|
|
|
|
|
v-show="category.instrument === currentWorkingInstrument.name"
|
|
|
|
|
:value="category"
|
|
|
|
|
v-for="category in props.categories">
|
|
|
|
|
v-for="category in props.categories.filter(currentCategory => currentCategory.instrument === currentWorkingInstrument.name)"
|
|
|
|
|
:value="category">
|
|
|
|
|
{{category.category}}
|
|
|
|
|
</option>
|
|
|
|
|
</select>
|
|
|
|
|
|