-
Notifications
You must be signed in to change notification settings - Fork 116
Add loading screen during operation + also allow async function in mutex #4390
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 loading screen during operation + also allow async function in mutex #4390
Conversation
This PR targets the un-managed branch odoo-dev/odoo:master-mysterious-egg, it needs to be retargeted before it can be merged. |
4d9ac90
to
329ebe8
Compare
This PR targets the un-managed branch odoo-dev/odoo:master-mysterious-egg, it needs to be retargeted before it can be merged. |
35f5632
to
9b0d3f3
Compare
// Cancel the operation if the iframe has been reloaded and | ||
// does not have a browsing context anymore | ||
if (!this.editableDocument.defaultView) { | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check isDestroyed to know if the iframe is relaoded
* @param {OperationParams} params | ||
* @returns {Promise<void>} | ||
*/ | ||
next(fn, { withLoadingEffect = true, loadingEffectDelay = 500 } = {}) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to cancel. I would just have one next function
9b0d3f3
to
bc9ad4b
Compare
bc517cb
to
228d827
Compare
No description provided.