File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
addons/website_sale/static/src/js Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import options from "@web_editor/js/editor/snippets.options.legacy" ;
4
4
import { MediaDialog } from "@web_editor/components/media_dialog/media_dialog" ;
5
+ import { SnippetSave } from "@web_editor/js/editor/snippets.options" ;
5
6
import { ConfirmationDialog } from "@web/core/confirmation_dialog/confirmation_dialog" ;
6
7
import { _t } from "@web/core/l10n/translation" ;
7
8
import "@website/js/editor/snippets.options" ;
@@ -736,12 +737,12 @@ options.registry.WebsiteSaleProductAttribute = options.Class.extend({
736
737
} ) ;
737
738
738
739
// Disable save for alternative products snippet
739
- options . registry . SnippetSave . include ( {
740
+ patch ( SnippetSave . prototype , {
740
741
/**
741
742
* @override
742
743
*/
743
744
async _computeVisibility ( ) {
744
- return await this . _super ( ...arguments )
745
+ return await super . _computeVisibility ( ...arguments )
745
746
&& ! this . $target . hasClass ( 'o_wsale_alternative_products' ) ;
746
747
}
747
748
} ) ;
You can’t perform that action at this time.
0 commit comments