[FIX] web_editor: do not display ai option for media
Specification: This commit target the scenario when image is in selection and the toolbar displays AI option for it, which made no sense as the generated response will replace the image. After this commit: The toolbar has been updated to show AI option only for text based scenario task-3733320 closes odoo/odoo#153190 Signed-off-by: Geelen Sébastien (sge) <sge@odoo.com>
This commit is contained in:
@@ -2161,6 +2161,7 @@ export class Wysiwyg extends Component {
|
||||
'#list',
|
||||
'#colorInputButtonGroup',
|
||||
'#media-insert', // "Insert media" should be replaced with "Replace media".
|
||||
'#chatgpt', // Chatgpt should be removed when media is in selection.
|
||||
].join(','))){
|
||||
el.classList.toggle('d-none', isInMedia);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user