Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add event emitter for new comments in adf-comments component #8798

Open
bOo-sRi opened this issue Jul 31, 2023 · 4 comments
Open

Add event emitter for new comments in adf-comments component #8798

bOo-sRi opened this issue Jul 31, 2023 · 4 comments

Comments

@bOo-sRi
Copy link

bOo-sRi commented Jul 31, 2023

Type of issue: (check with "[x]")

  • New feature request
  • Bug
  • Support request
  • Documentation

Component name and version:
adf-node-comments
adf-comments

New feature request:
We want to update a comment counter when a comment has been made.
We haven't found an Output nor Observable which emits after a new comment is made.
Is it possible to create an Output in the adf-node-comments / adf-comments component that emits after a new comment is added?

@DenysVuika
Copy link
Contributor

The comments component already provides the number of comments. Is that not working correctly for you?
image

@bOo-sRi
Copy link
Author

bOo-sRi commented Aug 9, 2023

Yes the comment counter does work correctly. However we have the comment counter in the node list view which needs to be updated when a comment is made.

@DenysVuika
Copy link
Contributor

You can use the Comments Service in your code and get the comments and the number of comments, i.e.:

this.commentsService.get(this.id).subscribe(

@bOo-sRi
Copy link
Author

bOo-sRi commented Aug 14, 2023

Well that is correct. Although we're looking more for a solution that provides a trigger which we can subscribe to. So we can update our interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants