← All changes
|
modules/optimization/assets/js/classes/control/control-meta.js
+5
-1
1.3.0
→
trunk
View file →
| @@ -20,8 +20,12 @@ | ||
| 20 | 20 | getStatus() { |
| 21 | 21 | return this.controlNode.dataset?.imageOptimizationStatus || null; |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | + getErrorType() { | |
| 25 | + return this.controlNode.dataset?.imageOptimizationErrorType || null; | |
| 26 | + } | |
| 27 | + | |
| 24 | 28 | canBeRestored() { |
| 25 | 29 | const value = this.controlNode.dataset?.imageOptimizationCanBeRestored; |
| 26 | 30 | |
| 27 | 31 | if ( ! value ) { |
| @@ -31,9 +35,9 @@ | ||
| 31 | 35 | return '1' === value; |
| 32 | 36 | } |
| 33 | 37 | |
| 34 | 38 | allowRetry() { |
| 35 | - return this.controlNode.dataset?.allowRetry || null; | |
| 39 | + return '1' === this.controlNode.dataset?.imageOptimizationAllowRetry; | |
| 36 | 40 | } |
| 37 | 41 | } |
| 38 | 42 | |
| 39 | 43 | export default ControlMeta; |