File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ import _ from "underscore";
12
12
import "../binding/live-edit" ;
13
13
import "../binding/sortable" ;
14
14
import "../binding/sortable-children" ;
15
- import ContentTypeCollection from "../content-type-collection" ;
16
15
import Config from "../config" ;
16
+ import ContentTypeCollection from "../content-type-collection" ;
17
17
import ContentTypeCollectionInterface from "../content-type-collection.types" ;
18
18
import ContentTypeConfigInterface , { ConfigFieldInterface } from "../content-type-config.types" ;
19
19
import createContentType from "../content-type-factory" ;
@@ -499,6 +499,9 @@ export default class Preview implements PreviewInterface {
499
499
* Bind events
500
500
*/
501
501
protected bindEvents ( ) {
502
+ let pageBuilderId = Config . getContentSnapshot ( ) . pageBuilderId ,
503
+ fullScreenModeChangeAfterEvent = `stage:${ pageBuilderId } :fullScreenModeChangeAfter` ;
504
+
502
505
this . contentType . dataStore . subscribe (
503
506
( data : DataObject ) => {
504
507
this . updateObservables ( ) ;
@@ -515,9 +518,7 @@ export default class Preview implements PreviewInterface {
515
518
} ,
516
519
) ;
517
520
}
518
- events . on ( `stage:${ Config . getContentSnapshot ( ) . pageBuilderId } :fullScreenModeChangeAfter` ,
519
- this . toggleAccessibility . bind ( this )
520
- ) ;
521
+ events . on ( fullScreenModeChangeAfterEvent , this . toggleAccessibility . bind ( this ) ) ;
521
522
}
522
523
523
524
/**
You can’t perform that action at this time.
0 commit comments