- {{ selectedHistory.item.type }} /
- {{ selectedHistory.item.name }}
- #{{ selectedHistory.item.ref }}
+
+ {{ selectedHistory.item.type }} /
+ {{ selectedHistory.item.name }}
+ #{{ selectedHistory.item.ref }}
+
{{ selectedHistory.user }}
@@ -94,7 +102,7 @@ export default {
rawIssues () {
return this.$store.state.core.firebase.history.filter(item => {
return item.type === 'issue'
- }) || []
+ }).reverse() || []
},
items () {
return this.$store.state.core.firebase.stock.filter(item => {
@@ -133,6 +141,9 @@ export default {
this.selectedHistory = null
})
})
+ },
+ getImageUrl (history, image, thumb = false) {
+ return this.$pb.files.getURL(history, image, { thumb: thumb ? '300x300f' : null })
}
}
}