Fix hound

This commit is contained in:
Anton 2023-08-25 09:46:53 +02:00
parent f31d2b8912
commit e66968357a
4 changed files with 9 additions and 9 deletions

View file

@ -144,7 +144,7 @@
return `${attachment.attributes.view_mode}Attachment` return `${attachment.attributes.view_mode}Attachment`
}, },
deleteAttachment(id) { deleteAttachment(id) {
this.$emit('attachment:deleted', id, ) this.$emit('attachment:deleted', id)
}, },
initMarvinJS() { initMarvinJS() {
// legacy logic from app/assets/javascripts/sitewide/marvinjs_editor.js // legacy logic from app/assets/javascripts/sitewide/marvinjs_editor.js

View file

@ -4,4 +4,4 @@ export default {
this.$emit('attachment:moved', attachmentId, targetId); this.$emit('attachment:moved', attachmentId, targetId);
} }
} }
} };

View file

@ -14,11 +14,11 @@ export default {
closeMoveModal() { closeMoveModal() {
this.movingAttachment = false; this.movingAttachment = false;
}, },
moveAttachment(target_id) { moveAttachment(targetId) {
axios.post(this.attachment.attributes.urls.move, { target_id: target_id }). axios.post(this.attachment.attributes.urls.move, { target_id: targetId })
then(() => { .then(() => {
this.movingAttachment = false; this.movingAttachment = false;
this.$emit('attachment:moved', this.attachment.id, target_id); this.$emit('attachment:moved', this.attachment.id, targetId);
}); });
} }
} }