OF-1387 Add confirmation before deleting subscribers in pubsub admin UI#3215
Conversation
|
Hi @guusdk , I’ve implemented the fix for OF-1387. Let me know if any changes are needed. |
guusdk
left a comment
There was a problem hiding this comment.
Thanks for this change! Although technically, it seems to work, visually, something weird happens. Can you change this please?
Consider this node (with one affiliation), which is a node in a PEP service.
When you click the red cross button, you get the a confirmation message, as expected. However, the affiliation has already disappeared and the information box also appears to have changed:
This may be a result from this node being a node in a PEP service (which is a special kind of Pubsub service). I am not able to easily test this with a 'regular' Pubsub service, but regardless, the confirmation page should also work properly for PEP services.
My last bit of feedback: I don't quite like how the confirmation dialog shows "under" the data. I see that this is how it was mocked in the JIRA ticket, but it is not very consistent with other pages. They typically show a dedicated page for such a confirmation. Take, for example, this confirmation of deleting a roster item:
I would prefer the new dialog to be more like this, to be more consistent with the rest of the admin console.
There was a problem hiding this comment.
This is a trivial change, but please, whenever you change a file, modify the copyright notice to cover the current year. So, in this example, change 2017-2025 to 2017-2026.
|
Hi @guusdk, I have implemented the new changes, but before pushing the code to Git, I want to verify that everything is working properly. However, I’m unable to find any button or link in Openfire where I can create a new node and then delete it, similar to what we have in the user Roster.
Technically, the implementation seems correct. Could you please guide me a bit or let me know how I can properly test whether the implementation is working? |
…fy UI, and update copyright notices
|
Hi @guusdk , Summary of updates: Moved deletion logic from pubsub-node-subscribers.jsp to pubsub-node-subscriber-delete.jsp. The larger diff mainly comes from separating the deletion flow into a dedicated page and adding the confirmation layer. Let me know if anything should be adjusted. |
|
yes, you are right there is the UI Inconsistency after the affiliation deletion. i will fix this , just need some time |
…github.com/MilanTyagi2004/Openfire into OF-1387-fix-subscriber-delete-confirmation



Fixes OF-1387.
This change adds a confirmation prompt before deleting subscribers in pubsub-node-subscribers.jsp to prevent accidental deletions.
The implementation uses a localized message (pubsub.node.subscribers.confirm_delete) and aligns with existing confirmation patterns used in the admin console.
This ensures a consistent and safer user experience across the UI.