Skip to content

Commit

Permalink
fix: improve generic lazyload setting description and behaviour, fix #…
Browse files Browse the repository at this point in the history
  • Loading branch information
selul committed Jul 21, 2019
1 parent 4f80cc0 commit 13ce758
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/vue/components/options.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
:class="tab === 'resize' ? 'is-active' : ''"
:title="all_strings.settings_resize_menu_item+' '+all_strings.settings_menu_item">{{all_strings.settings_resize_menu_item}}</a>
</li>
<li><a @click="changeTab('lazyload')" href="#"
<li v-if="this.$store.state.site_settings.lazyload==='enabled'"><a @click="changeTab('lazyload')" href="#"
:class="tab === 'lazyload' ? 'is-active' : ''"
:title="all_strings.lazyload_settings_menu_item+' '+all_strings.lazyload_settings_menu_item">{{all_strings.lazyload_settings_menu_item}}</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion inc/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ private function get_dashboard_strings() {
'enable_network_opt_title' => __( 'Enable network based optimizations', 'optimole-wp' ),
'enable_resize_smart_title' => __( 'Enable Smart Cropping', 'optimole-wp' ),
'enable_lazyload_placeholder_title' => __( 'Enable generic lazyload placeholder', 'optimole-wp' ),
'enable_lazyload_placeholder_desc' => __( 'Optimole will use a generic lazyload placeholder instead of the low quality version of your image when doing the lazyload.', 'optimole-wp' ),
'enable_lazyload_placeholder_desc' => __( 'Enabling this might affect the user experience in some cases, however it will reduce the number of total requests and page weight. Try it out and see how works best for you!', 'optimole-wp' ),
'show' => __( 'Show', 'optimole-wp' ),
'filter_operator_contains' => __( 'contains', 'optimole-wp' ),
'filter_operator_is' => __( 'is', 'optimole-wp' ),
Expand Down

0 comments on commit 13ce758

Please sign in to comment.