File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
assets/src/dashboard/parts/connected Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,19 +10,20 @@ const OptimizationStatus = () => {
10
10
const statuses = useSelect ( select => {
11
11
const { getSiteSettings } = select ( 'optimole' ) ;
12
12
const siteSettings = getSiteSettings ( ) ;
13
+ const lazyloadEnabled = 'enabled' === siteSettings ?. lazyload ;
13
14
return [
14
15
{
15
16
active : 'enabled' === siteSettings ?. image_replacer ,
16
17
label : optimoleDashboardApp . strings . optimization_status . statusTitle1 ,
17
18
description : optimoleDashboardApp . strings . optimization_status . statusSubTitle1
18
19
} ,
19
20
{
20
- active : 'enabled' === siteSettings ?. lazyload ,
21
+ active : lazyloadEnabled ,
21
22
label : optimoleDashboardApp . strings . optimization_status . statusTitle2 ,
22
23
description : optimoleDashboardApp . strings . optimization_status . statusSubTitle2
23
24
} ,
24
25
{
25
- active : 'disabled' === siteSettings ?. scale ,
26
+ active : lazyloadEnabled && 'disabled' === siteSettings ?. scale ,
26
27
label : optimoleDashboardApp . strings . optimization_status . statusTitle3 ,
27
28
description : optimoleDashboardApp . strings . optimization_status . statusSubTitle3
28
29
}
You can’t perform that action at this time.
0 commit comments