File tree 1 file changed +3
-6
lines changed
src/Resources/app/administration/src/module/tinect-redirects/page/tinect-redirects-index
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export default {
24
24
sortDirection : 'DESC' ,
25
25
filter : {
26
26
salesChannelDomainId : null ,
27
- active : null ,
27
+ active : 0 ,
28
28
hidden : 0 ,
29
29
}
30
30
} ;
@@ -86,17 +86,14 @@ export default {
86
86
const criteria = new Criteria ( this . page , this . limit ) ;
87
87
88
88
criteria . setTerm ( this . term ) ;
89
+ criteria . addFilter ( Criteria . equals ( 'active' , this . filter . active ) ) ;
89
90
criteria . addFilter ( Criteria . equals ( 'hidden' , this . filter . hidden ) ) ;
90
91
criteria . addSorting ( Criteria . sort ( this . sortBy , this . sortDirection , this . naturalSorting ) ) ;
91
92
92
93
if ( this . filter . salesChannelDomainId ) {
93
94
criteria . addFilter ( Criteria . equals ( 'salesChannelDomainId' , this . filter . salesChannelDomainId ) ) ;
94
95
}
95
96
96
- if ( this . filter . active ) {
97
- criteria . addFilter ( Criteria . equals ( 'active' , this . filter . active ) ) ;
98
- }
99
-
100
97
return criteria ;
101
98
} ,
102
99
} ,
@@ -125,7 +122,7 @@ export default {
125
122
resetFilter ( ) {
126
123
this . filter = {
127
124
salesChannelDomainId : null ,
128
- active : null ,
125
+ active : 0 ,
129
126
hidden : 0 ,
130
127
} ;
131
128
} ,
You can’t perform that action at this time.
0 commit comments