- spotlight mobile fix with opening image

This commit is contained in:
Čarodej
2022-04-04 17:38:22 +02:00
parent 2fa73dc3d2
commit 3d9272b05e
3 changed files with 26 additions and 22 deletions
@@ -219,9 +219,6 @@ export default {
}, 300),
},
created() {
// Set item name to own component variable
this.itemName = this.entry.data.attributes.name
// Change item name
events.$on('change:name', (item) => {
if (this.entry.data.id === item.id) {
@@ -237,7 +234,12 @@ export default {
}
})
this.getImageSrc()
// Set item name to own component variable
this.itemName = this.entry.data.attributes.name
if (this.entry.data.type === 'image') {
this.getImageSrc()
}
},
}
</script>