Skip to content

Commit 50ad98c

Browse files
committed
PB-265: Video background for Banner
1 parent 75a8b38 commit 50ad98c

File tree

2 files changed

+2
-13
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web

2 files changed

+2
-13
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/banner/preview.js

Lines changed: 1 addition & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type/banner/preview.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,11 @@ export default class Preview extends BasePreview {
123123
super(contentType, config, observableUpdater);
124124

125125
this.contentType.dataStore.subscribe(this.buildJarallax);
126-
events.on("row:mountAfter", (args: ContentTypeReadyEventParamsInterface) => {
126+
events.on("banner:mountAfter", (args: ContentTypeReadyEventParamsInterface) => {
127127
if (args.id === this.contentType.id) {
128128
this.buildJarallax();
129129
}
130130
});
131-
events.on("contentType:mountAfter", (args: ContentTypeMountEventParamsInterface) => {
132-
if (args.contentType.parentContentType && args.contentType.parentContentType.id === this.contentType.id) {
133-
this.buildJarallax();
134-
}
135-
});
136131
}
137132

138133
/**

0 commit comments

Comments
 (0)