Sahil-Shadwal opened a new pull request, #3932: URL: https://github.com/apache/hertzbeat/pull/3932
## What's changed? Fixed the issue where clicking a tab on one collector card would erroneously change the active tab for all other collector cards in the Manager Dashboard (#3930). **Root Cause:** The `collectorsTabSelectedIndex` variable in `dashboard.component.ts` was shared across all collector cards rendered in the `*ngFor` loop. **Fix:** - Replaced the single `collectorsTabSelectedIndex` property with a `collectorsTabSelectedIndexes` map. - Updated `dashboard.component.html` to bind each card's tab index to its specific index (`collectorsTabSelectedIndexes[i]`), ensuring independent state management. https://github.com/user-attachments/assets/bdda0a17-a20a-4f79-9d0a-8e654a7b61e7 ## Checklist - [x] I have read the [Contributing Guide](https://hertzbeat.apache.org/docs/community/code_style_and_quality_guide) - [x] I have written the necessary doc or comment. - [ ] I have added the necessary unit tests and all cases have passed. ## Add or update API - [ ] I have added the necessary [e2e tests](https://github.com/apache/hertzbeat/tree/master/e2e) and all cases have passed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
