[FIX] web_editor: fix image transforms linter issues
This fixes linter issues introduced in https://github.com/odoo/odoo/pull/71847 task-2554608 closes odoo/odoo#74823 X-original-commit: 5a990248c647d7303ffc578e6fc9dbc1ee4670dc Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -3096,7 +3096,7 @@ var SnippetsMenu = Widget.extend({
|
||||
},
|
||||
/**
|
||||
* Enable loading effects
|
||||
*
|
||||
*
|
||||
* @private
|
||||
*/
|
||||
_onEnableLoadingEffect: function () {
|
||||
@@ -3104,7 +3104,7 @@ var SnippetsMenu = Widget.extend({
|
||||
},
|
||||
/**
|
||||
* Disable loading effects and cancel the one displayed
|
||||
*
|
||||
*
|
||||
* @private
|
||||
*/
|
||||
_onDisableLoadingEffect: function () {
|
||||
|
||||
@@ -4219,7 +4219,7 @@ registry.ImageTools = SnippetOptionWidget.extend({
|
||||
},
|
||||
/**
|
||||
* Resets the image cropping
|
||||
*
|
||||
*
|
||||
* @see this.selectClass for parameters
|
||||
*/
|
||||
async resetCrop() {
|
||||
@@ -4229,7 +4229,7 @@ registry.ImageTools = SnippetOptionWidget.extend({
|
||||
},
|
||||
/**
|
||||
* Resets the image rotation and translation
|
||||
*
|
||||
*
|
||||
* @see this.selectClass for parameters
|
||||
*/
|
||||
async resetTransform() {
|
||||
@@ -4281,10 +4281,10 @@ registry.ImageTools = SnippetOptionWidget.extend({
|
||||
_computeWidgetVisibility(widgetName, params) {
|
||||
if (params.optionsPossibleValues.resetTransform) {
|
||||
return this._isTransformed();
|
||||
}
|
||||
}
|
||||
if (params.optionsPossibleValues.resetCrop) {
|
||||
return this._isCropped();
|
||||
}
|
||||
}
|
||||
return this._super(...arguments);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user