File tree 1 file changed +12
-0
lines changed
app/code/Magento/Ui/view/base/web/js/grid
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,12 @@ define([
13
13
return Component . extend ( {
14
14
defaults : {
15
15
listingNamespace : null ,
16
+ bookmarkProvider : 'componentType = bookmark, ns = ${ $.listingNamespace }' ,
16
17
filterProvider : 'componentType = filters, ns = ${ $.listingNamespace }' ,
17
18
filterKey : 'filters' ,
18
19
searchString : location . search ,
19
20
modules : {
21
+ bookmarks : '${ $.bookmarkProvider }' ,
20
22
filterComponent : '${ $.filterProvider }'
21
23
}
22
24
} ,
@@ -49,6 +51,16 @@ define([
49
51
return ;
50
52
}
51
53
54
+ if ( ! _ . isUndefined ( this . bookmarks ( ) ) ) {
55
+ if ( ! _ . size ( this . bookmarks ( ) . getViewData ( this . bookmarks ( ) . defaultIndex ) ) ) {
56
+ setTimeout ( function ( ) {
57
+ this . apply ( ) ;
58
+ } . bind ( this ) , 500 ) ;
59
+
60
+ return ;
61
+ }
62
+ }
63
+
52
64
if ( Object . keys ( urlFilter ) . length ) {
53
65
applied = this . filterComponent ( ) . get ( 'applied' ) ;
54
66
filters = $ . extend ( { } , applied , urlFilter ) ;
You can’t perform that action at this time.
0 commit comments