stash
This commit is contained in:
parent
a7515d366c
commit
fa7d5f40a9
5 changed files with 44 additions and 33 deletions
|
|
@ -35,7 +35,7 @@
|
|||
<div class="mb-3">
|
||||
<label for="image" class="form-label">Image</label>
|
||||
<div>
|
||||
<authenticated-image v-for="file in files" :key="file.id" :src="file.name"
|
||||
<authenticated-image v-for="file in item.files" :key="file.id" :src="file.name"
|
||||
:owner="file.owner" class="img-thumbnail border-info"></authenticated-image>
|
||||
</div>
|
||||
|
||||
|
|
@ -74,11 +74,6 @@ export default {
|
|||
BaseLayout,
|
||||
...BIcons
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
files: []
|
||||
}
|
||||
},
|
||||
props: {
|
||||
id: {
|
||||
type: String,
|
||||
|
|
@ -96,14 +91,6 @@ export default {
|
|||
},
|
||||
async mounted() {
|
||||
await this.fetchInventoryItems()
|
||||
console.log(this.id, typeof this.id)
|
||||
const files = await this.fetchFilesByItem({id: this.id})
|
||||
this.files = files.map(file => {
|
||||
return {
|
||||
...file,
|
||||
owner: this.item.owner
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -6,13 +6,6 @@
|
|||
<div class="card">
|
||||
<div class="card-header">Edit Item</div>
|
||||
<div class="card-body">
|
||||
<div class="mb-3">
|
||||
<ul>
|
||||
<li v-for="file in item.files" :key="file.name">
|
||||
{{ file.name }} ({{ file.hash }})
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="name" class="form-label">Name</label>
|
||||
<input type="text" class="form-control" id="name" name="name"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue