-
Notifications
You must be signed in to change notification settings - Fork 116
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
InstagramPage (.s_instagram_page) #4209
InstagramPage (.s_instagram_page) #4209
Conversation
This PR targets the un-managed branch odoo-dev/odoo:master-mysterious-egg, it needs to be retargeted before it can be merged. |
3ee87bf
to
98b990a
Compare
dce7d9e
to
01a2181
Compare
clean_for_save_handlers: ({ root }) => { | ||
for (const el of root.querySelectorAll(".s_instagram_page iframe")) { | ||
el.remove(); | ||
} | ||
}, |
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.
Why we need to remove it ? Who is adding this node
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.
It's added by the interaction. I don't know why it is not clean up before the save. But if I don't clean it here, there are two iframes after the save
addons/html_builder/static/src/plugins/instagram_option_plugin.js
Outdated
Show resolved
Hide resolved
addons/html_builder/static/src/plugins/instagram_option_plugin.js
Outdated
Show resolved
Hide resolved
Your instagram page must be public to be integrated into an Odoo website. | ||
</div> | ||
<BuilderRow label.translate="Instagram Page"> | ||
<BuilderTextInput dataAttributeAction="'instagramPage'" action="'instagramPageAction'"/> |
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.
why not do every thing in instagramPageAction ? I m not sure it s a good idea to use dataAttributeAction in this case. If the apply order change it will be broken. Could you add 1 or 2 tests ?
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.
Indeed that is a good idea to put it all in instagramPageAction
, I'll do that
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.
(so I did not add tests for this)
addons/html_builder/static/src/plugins/instagram_option_plugin.js
Outdated
Show resolved
Hide resolved
f2221f6
to
a98f0d7
Compare
addons/html_builder/static/src/plugins/facebook_option_plugin.js
Outdated
Show resolved
Hide resolved
a98f0d7
to
7b1d402
Compare
7b1d402
to
0005c9f
Compare
No description provided.