Skip to content

Commit

Permalink
Fix category combox
Browse files Browse the repository at this point in the history
  • Loading branch information
ziteh committed May 1, 2024
1 parent 7353bb1 commit 93d3039
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions elebox-tauri/src/components/NewCategory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ onMounted(getCategories);
<v-container>
<v-row class="ga-8">
<v-text-field label="Name" variant="outlined" v-model="catName" placeholder="MCU"></v-text-field>
<v-select label="Category" :items="Object.values(categories).map(cat => cat.name)"
variant="outlined"></v-select>
<v-select label="Category" :items="Object.values(categories).map(cat => cat.name)" variant="outlined"
v-model="catParent"></v-select>
<v-btn @click="newCategory">Save</v-btn>
</v-row>
</v-container>
Expand Down
2 changes: 1 addition & 1 deletion elebox-tauri/src/views/Part.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ onMounted(getCategories);
<v-text-field label="Name" variant="outlined" v-model="partName" placeholder="RP2040"></v-text-field>
<v-text-field label="Quantity" variant="outlined" v-model="partQty"></v-text-field>
<v-select label="Category" :items="Object.values(categories).map(cat => cat.name)"
variant="outlined"></v-select>
variant="outlined" v-model="category"></v-select>
</v-row>
<v-row class="ga-8">
<v-select label="Package" :items="Object.values(categories).map(cat => cat.name)" variant="outlined"></v-select>
Expand Down

0 comments on commit 93d3039

Please sign in to comment.