Skip to content

Commit b6fa0c5

Browse files
authored
Merge pull request #528 from Codeinwp/fix/issue-515
Fix Show Sample button not displaying when expected
2 parents f44a1fc + d5698f7 commit b6fa0c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

assets/vue/components/compression.vue

+2
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ export default {
280280
}
281281
},
282282
mounted: function () {
283+
this.showSample = this.site_settings.autoquality === 'disabled';
283284
},
284285
methods: {
285286
saveChanges: function () {
@@ -348,6 +349,7 @@ export default {
348349
autoQuality: {
349350
set: function (value) {
350351
this.showSave = true;
352+
this.showSample = ! this.showSample;
351353
this.showManualQuality = ! value;
352354
this.new_data.autoquality = value ? 'enabled' : 'disabled';
353355
},

0 commit comments

Comments
 (0)