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 destroyOnHide for DialogService pubSub payloads #1362

Merged
merged 1 commit into from
Jun 12, 2018

Conversation

AFaust
Copy link
Contributor

@AFaust AFaust commented Feb 19, 2017

This PR adds a new configuration property to payloads for DialogService pubSub events to create dialog instances to specify destroyOnHide semantics.

Currently, all dialogs created via the DialogService will remain technically alive and active until the next dialog with the same dialogId is created and any previous instance is properly destroyed. For complex dialogs that include widgets with active pubSub interactions this means these widgets may continue to publish or react to events. E.g. in the OOTBee Support Tools addon there is a dialog to display and contiuously reload the alfresco.log / share.log files, refreshing on a timer. Currently, the timer keeps triggering after the dialog is closed (hidden) as it and its widgets are not eagerly destroyed. A destroyOnHide property and eager widget destruction addresses this use case.

@davidcognite davidcognite merged commit 6f1006e into Alfresco:develop Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants