From 5fe16aa346337bfa6cb569701966a238673b3a76 Mon Sep 17 00:00:00 2001 From: Younn Olivier Date: Fri, 6 Aug 2021 11:07:55 +0000 Subject: [PATCH] [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) --- addons/web_editor/static/src/js/editor/snippets.editor.js | 4 ++-- .../web_editor/static/src/js/editor/snippets.options.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/web_editor/static/src/js/editor/snippets.editor.js b/addons/web_editor/static/src/js/editor/snippets.editor.js index 182530bb09a..2bf6f3ee522 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -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 () { diff --git a/addons/web_editor/static/src/js/editor/snippets.options.js b/addons/web_editor/static/src/js/editor/snippets.options.js index 9dc869fdb2f..2aeb71d8b07 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -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); }, });