File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
app/code/Magento/PageBuilderAdminAnalytics/view/adminhtml/web/js/page-builder Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,19 @@ define(['underscore'], function (_underscore) {
39
39
if ( name . indexOf ( 'removeAfter' ) !== - 1 ) action = 'remove' ;
40
40
if ( name . indexOf ( 'createAfter' ) !== - 1 ) action = 'create' ;
41
41
42
+ if ( name . indexOf ( 'updateAfter' ) !== - 1 &&
43
+ ! _underscore . isUndefined ( args ) &&
44
+ ! _underscore . isUndefined ( args . dataStore ) &&
45
+ ! _underscore . isUndefined ( args . dataStore . previousState ) &&
46
+ ! _underscore . isUndefined ( args . dataStore . state )
47
+ ) {
48
+ console . log ( 'hiding/showing' ) ;
49
+ if ( args . dataStore . previousState . display === true &&
50
+ args . dataStore . state . display === false ) action = 'hide' ;
51
+ if ( args . dataStore . previousState . display === false &&
52
+ args . dataStore . state . display === true ) action = 'show' ;
53
+ }
54
+
42
55
if ( ! _underscore . isUndefined ( args ) && ! _underscore . isUndefined ( args . contentType ) &&
43
56
! _underscore . isUndefined ( args . contentType . config && action !== '' )
44
57
) {
You can’t perform that action at this time.
0 commit comments