|
11 | 11 | <toggle-button :class="'has-text-dark'"
|
12 | 12 | v-model="lazyloadPlaceholder"
|
13 | 13 | :disabled="this.$store.state.loading"
|
14 |
| - :width="37" |
15 |
| - :height="20" |
16 |
| - color="#577BF9"></toggle-button> |
| 14 | + :width="37" |
| 15 | + :height="20" |
| 16 | + color="#577BF9"></toggle-button> |
17 | 17 | </div>
|
18 | 18 | </div>
|
19 |
| - <hr/> |
| 19 | + <hr/> |
20 | 20 |
|
21 | 21 | <div class="field columns optml-flex-column" >
|
22 | 22 | <label class="label column optml-custom-label-margin">
|
|
35 | 35 | </div>
|
36 | 36 |
|
37 | 37 | </div>
|
38 |
| - <hr/> |
| 38 | + <hr/> |
39 | 39 | <!--Native lazy toggle-->
|
40 | 40 | <div class="field is-fullwidth columns">
|
41 | 41 | <label class="label column has-text-grey-dark optml-custom-label-margin">
|
|
50 | 50 | <toggle-button :class="'has-text-dark'"
|
51 | 51 | v-model="nativeLazyStatus"
|
52 | 52 | :disabled="this.$store.state.loading"
|
53 |
| - :width="37" |
54 |
| - :height="20" |
55 |
| - color="#577BF9"></toggle-button> |
| 53 | + :width="37" |
| 54 | + :height="20" |
| 55 | + color="#577BF9"></toggle-button> |
56 | 56 | </div>
|
57 | 57 | </div>
|
58 |
| - <hr/> |
| 58 | + <hr/> |
59 | 59 | <div class="field is-fullwidth columns">
|
60 | 60 | <label class="label column has-text-grey-dark optml-custom-label-margin">
|
61 | 61 | {{strings.toggle_scale}}
|
|
69 | 69 | <toggle-button :class="'has-text-dark'"
|
70 | 70 | v-model="scaleStatus"
|
71 | 71 | :disabled="this.$store.state.loading"
|
72 |
| - :width="37" |
73 |
| - :height="20" |
74 |
| - color="#577BF9"></toggle-button> |
| 72 | + :width="37" |
| 73 | + :height="20" |
| 74 | + color="#577BF9"></toggle-button> |
75 | 75 | </div>
|
76 | 76 | </div>
|
77 |
| - <hr/> |
| 77 | + <hr/> |
78 | 78 | <div class="field columns">
|
79 | 79 | <label class="label column has-text-grey-dark optml-custom-label-margin">
|
80 | 80 | {{strings.enable_bg_lazyload_title}}
|
|
86 | 86 | <toggle-button :class="'has-text-dark'"
|
87 | 87 | v-model="lazyloadBgImages"
|
88 | 88 | :disabled="this.$store.state.loading"
|
89 |
| - :width="37" |
90 |
| - :height="20" |
91 |
| - color="#577BF9"></toggle-button> |
| 89 | + :width="37" |
| 90 | + :height="20" |
| 91 | + color="#577BF9"></toggle-button> |
92 | 92 | </div>
|
93 | 93 | </div>
|
94 |
| - <hr/> |
| 94 | + <hr/> |
95 | 95 | <!--Video lazyload toggle-->
|
96 | 96 | <div class="field columns">
|
97 | 97 | <label class="label column has-text-grey-dark optml-custom-label-margin">
|
|
104 | 104 | <toggle-button :class="'has-text-dark'"
|
105 | 105 | v-model="lazyloadVideo"
|
106 | 106 | :disabled="this.$store.state.loading"
|
107 |
| - :width="37" |
108 |
| - :height="20" |
109 |
| - color="#577BF9"></toggle-button> |
| 107 | + :width="37" |
| 108 | + :height="20" |
| 109 | + color="#577BF9"></toggle-button> |
110 | 110 | </div>
|
111 | 111 | </div>
|
112 |
| - <hr/> |
| 112 | + <hr/> |
| 113 | + <!--Noscript toggle--> |
| 114 | + <div class="field columns"> |
| 115 | + <label class="label column has-text-grey-dark optml-custom-label-margin"> |
| 116 | + {{strings.enable_noscript_title}} |
| 117 | + <p class="optml-settings-desc-margin has-text-weight-normal"> |
| 118 | + {{strings.enable_noscript_desc}} |
| 119 | + </p> |
| 120 | + </label> |
| 121 | + <div class="column is-1"> |
| 122 | + <toggle-button :class="'has-text-dark'" |
| 123 | + v-model="noscriptToggle" |
| 124 | + :disabled="this.$store.state.loading" |
| 125 | + :width="37" |
| 126 | + :height="20" |
| 127 | + color="#577BF9"></toggle-button> |
| 128 | + </div> |
| 129 | + </div> |
| 130 | + <hr/> |
113 | 131 | <div class="field columns" v-if="showBgSelectors">
|
114 | 132 | <div class="column">
|
115 | 133 | <label class="label has-text-grey-dark optml-custom-label-margin">
|
|
200 | 218 | return !(this.site_settings.video_lazyload === 'disabled');
|
201 | 219 | }
|
202 | 220 | },
|
| 221 | + noscriptToggle: { |
| 222 | + set: function (value) { |
| 223 | + this.showSave = true; |
| 224 | + this.new_data.no_script = value ? 'enabled' : 'disabled'; |
| 225 | + }, |
| 226 | + get: function () { |
| 227 | + return !(this.site_settings.no_script === 'disabled'); |
| 228 | + } |
| 229 | + }, |
203 | 230 | lazyloadSelectors: {
|
204 | 231 | set: function ( value ) {
|
205 | 232 | this.showSave = true;
|
|
0 commit comments