Skip to content

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

Merged
merged 1 commit into from
Apr 18, 2025

Conversation

sobo-odoo
Copy link

No description provided.

@robodoo
Copy link

robodoo commented Apr 15, 2025

This PR targets the un-managed branch odoo-dev/odoo:master-mysterious-egg, it needs to be retargeted before it can be merged.

@sobo-odoo sobo-odoo force-pushed the master-mysterious-egg-sobo-2 branch from 4d9ac90 to 329ebe8 Compare April 15, 2025 17:01
@sobo-odoo sobo-odoo marked this pull request as ready for review April 16, 2025 11:41
@robodoo
Copy link

robodoo commented Apr 16, 2025

This PR targets the un-managed branch odoo-dev/odoo:master-mysterious-egg, it needs to be retargeted before it can be merged.

@sobo-odoo sobo-odoo force-pushed the master-mysterious-egg-sobo-2 branch 2 times, most recently from 35f5632 to 9b0d3f3 Compare April 16, 2025 12:59
Comment on lines 73 to 83
// Cancel the operation if the iframe has been reloaded and
// does not have a browsing context anymore
if (!this.editableDocument.defaultView) {
return;
}

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 } = {}) {
Copy link

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

@sobo-odoo sobo-odoo force-pushed the master-mysterious-egg-sobo-2 branch from 9b0d3f3 to bc9ad4b Compare April 16, 2025 15:13
@sobo-odoo sobo-odoo force-pushed the master-mysterious-egg-sobo-2 branch from bc517cb to 228d827 Compare April 17, 2025 14:14
@FrancoisGe FrancoisGe merged commit 3f5edc4 into master-mysterious-egg Apr 18, 2025
@FrancoisGe FrancoisGe deleted the master-mysterious-egg-sobo-2 branch April 18, 2025 07:14
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.

4 participants