File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
assets/src/dashboard/parts/connected Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,15 @@ import { Icon } from '@wordpress/components';
22import { closeSmall , check } from '@wordpress/icons' ;
33
44const OptimizationStatus = ( { settings } ) => {
5- const lazyloadEnabled = 'enabled' === settings ?. lazyload ;
6- const imageHandlingEnabled = 'enabled' === settings ?. image_replacer ;
5+ const userStatus = optimoleDashboardApp . user_status ? optimoleDashboardApp . user_status : 'inactive' ;
6+ const lazyloadEnabled = 'enabled' === settings ?. lazyload && 'inactive' !== userStatus ;
7+ const imageHandlingEnabled = 'enabled' === settings ?. image_replacer && 'inactive' !== userStatus ;
78 const statuses = [
9+ {
10+ active : 'inactive' !== userStatus ,
11+ label : optimoleDashboardApp . strings . optimization_status . statusTitle4 ,
12+ description : optimoleDashboardApp . strings . optimization_status . statusSubTitle4
13+ } ,
814 {
915 active : imageHandlingEnabled ,
1016 label : optimoleDashboardApp . strings . optimization_status . statusTitle1 ,
Original file line number Diff line number Diff line change @@ -2136,6 +2136,8 @@ private function get_dashboard_strings() {
21362136 'statusSubTitle2 ' => __ ( 'Images load as visitors scroll ' , 'optimole-wp ' ),
21372137 'statusTitle3 ' => __ ( 'Image Scalling ' , 'optimole-wp ' ),
21382138 'statusSubTitle3 ' => __ ( 'All images are perfectly sized for devices ' , 'optimole-wp ' ),
2139+ 'statusTitle4 ' => __ ( 'Account Status ' , 'optimole-wp ' ),
2140+ 'statusSubTitle4 ' => __ ( 'Your optimole account status ' , 'optimole-wp ' ),
21392141 ],
21402142 'optimization_tips ' => sprintf (
21412143 /* translators: 1 is the opening anchor tag, 2 is the closing anchor tag */
You can’t perform that action at this time.
0 commit comments