0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-03 07:49:57 +00:00

Comments: Updated to show form in expected location

Includes a change of create response to use a branch as a template.
This commit is contained in:
Dan Brown 2023-06-08 15:03:38 +01:00
parent 154924cc0c
commit 3b46b92bb9
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
7 changed files with 68 additions and 51 deletions
resources/js/components

View file

@ -25,7 +25,10 @@ export class PageComment extends Component {
}
setupListeners() {
this.replyButton.addEventListener('click', () => this.$emit('reply', {id: this.commentLocalId}));
this.replyButton.addEventListener('click', () => this.$emit('reply', {
id: this.commentLocalId,
element: this.container,
}));
this.editButton.addEventListener('click', this.startEdit.bind(this));
this.deleteButton.addEventListener('click', this.delete.bind(this));
this.form.addEventListener('submit', this.update.bind(this));