Skip to content

Do not start all plugins in translate mode #4598

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
May 14, 2025

Conversation

loco-odoo
Copy link

No description provided.

@robodoo
Copy link

robodoo commented May 7, 2025

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

@loco-odoo loco-odoo force-pushed the master-mysterious-egg-loco-1 branch 3 times, most recently from ad51670 to cf167fd Compare May 8, 2025 06:47
@@ -99,10 +99,10 @@ export class VisibilityPlugin extends Plugin {
const isShown = this.toggleVisibilityStatus(editingEl, show);

if (!isShown) {
this.dependencies["builder-options"].deactivateContainers();
this.dispatchTo("deactivate_containers");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.dispatchTo("element_toggle_visibility_handlers", { el, isShown });

if (show) {
this.shared["builder-options"].updateContainers(snippetEl);
this.getResource("update_containers").forEach((handler) => handler(snippetEl));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe duplicate code

@loco-odoo loco-odoo force-pushed the master-mysterious-egg-loco-1 branch 7 times, most recently from b2fa8de to 12f6a12 Compare May 13, 2025 10:09
Comment on lines 111 to 118
deactivateContainersIfTargetHidden(elToVisibilityMap) {
for (const [el, visibility] of elToVisibilityMap.entries()) {
if (el.contains(this.target) && !visibility) {
this.deactivateContainers();
return;
}
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need something more generic. Why not use onSelectedElVisibilityUpdated ?
Maybe rename onElVisibilityUpdated.
Check if el.contains(this.target) || el === this.target && !show then this.deactivateContainers

Sorry, something went wrong.

@loco-odoo loco-odoo force-pushed the master-mysterious-egg-loco-1 branch from 12f6a12 to 821df91 Compare May 14, 2025 08:10
@loco-odoo loco-odoo force-pushed the master-mysterious-egg-loco-1 branch from 821df91 to 7527a6b Compare May 14, 2025 11:13
@FrancoisGe FrancoisGe marked this pull request as ready for review May 14, 2025 13:46
@robodoo
Copy link

robodoo commented May 14, 2025

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

Sorry, something went wrong.

@FrancoisGe FrancoisGe merged commit 8f7df18 into master-mysterious-egg May 14, 2025
@FrancoisGe FrancoisGe deleted the master-mysterious-egg-loco-1 branch May 14, 2025 13:46
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.

None yet

3 participants