← All changes
|
modules/optimization/assets/js/classes/control/control-states.js
+2
-2
1.5.0
→
1.7.7
View file →
| @@ -32,11 +32,11 @@ | ||
| 32 | 32 | |
| 33 | 33 | this.controlWrapper.dataset.imageOptimizationStatus = 'optimized'; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - renderError( { message, imagesLeft, action } ) { | |
| 36 | + renderError( { message, errorType, imagesLeft, allowRetry, action } ) { | |
| 37 | 37 | this.controlWrapper.className = this.mixControlContextClass( SELECTORS.controlErrorClassName ); |
| 38 | - this.controlWrapper.innerHTML = this.getTemplates().errorTemplate( message, imagesLeft ); | |
| 38 | + this.controlWrapper.innerHTML = this.getTemplates().errorTemplate( { message, errorType, imagesLeft, allowRetry } ); | |
| 39 | 39 | |
| 40 | 40 | this.controlWrapper.dataset.imageOptimizationAction = action; |
| 41 | 41 | this.controlWrapper.dataset.imageOptimizationStatus = 'error'; |
| 42 | 42 | } |