This commit is contained in:
j3d1 2026-07-23 04:41:04 +02:00
parent 7c91661be2
commit 796fef81be
37 changed files with 3404 additions and 108 deletions

View file

@ -42,8 +42,8 @@
<div class="mb-3">
<label for="storage_location" class="form-label">Storage Location</label>
<select class="form-select" id="storage_location" name="storage_location"
v-model="item.storage_location_id">
<option value="">No storage location</option>
v-model="item.storage_location">
<option :value="null">No storage location</option>
<option v-for="location in storage_locations" :value="location.id"
:key="location.id">
{{ location.path }}
@ -95,18 +95,20 @@ export default {
image: "",
tags: [],
properties: [],
files: []
files: [],
storage_location: null
}
}
},
methods: {
...mapActions(['createInventoryItem', 'fetchInfo'])
...mapActions(['createInventoryItem', 'fetchInfo', 'fetchStorageLocations'])
},
computed: {
...mapState(["availability_policies", "storage_locations"]),
},
async mounted() {
await this.fetchInfo();
await this.fetchStorageLocations();
}
}
</script>