edit: intégration video mastodon + bug fix liens

This commit is contained in:
2026-04-18 16:39:45 +02:00
parent d77bbdbb41
commit f9d65f2d46
8 changed files with 195 additions and 34 deletions
@@ -332,7 +332,7 @@
rootDepth: 0
}
},
emits: ['close','focus','openImg','openLink'],
emits: ['close','focus','openImg','openLink','openVideo'],
methods:{
onDrag({ target, transform }) {
target.style.transform = transform;
@@ -393,7 +393,19 @@
caption: e.caption,
description: e.description
}
//console.log(dataStorage.selectedLink);
console.log(dataStorage.selectedLink);
}
if(e.type === 'video'){
this.$emit('openVideo');
dataStorage.selectedVideo = {
src: e.src,
caption: e.caption,
like: e.like,
alt: e.alt,
format: e.format,
isLiked: e.isLiked
}
this.displayedDescription = e.description;
}
this.selectFile(e);