mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-18 06:40:18 +08:00
Fix hound
This commit is contained in:
parent
f31d2b8912
commit
e66968357a
4 changed files with 9 additions and 9 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,4 @@ export default {
|
||||||
this.$emit('attachment:moved', attachmentId, targetId);
|
this.$emit('attachment:moved', attachmentId, targetId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue