diff options
| author | stefanorigano (SRI) <sri@odoo.com> | 2020-08-11 07:46:08 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-08-14 19:19:48 +0000 |
| commit | 374ce7759ec1a812aa656c4ebbe6fbd5b4fcaa2d (patch) | |
| tree | 993000dfc87abe275e17936bd50f73e83e8491da /addons/web_editor/static/src/js/editor/snippets.options.js | |
| parent | bc77998998563b2c68efd457832635844a990f37 (diff) | |
[IMP] web_editor, website, *: adjust general ui spacing/alignment
*: website_form
Part of https://github.com/odoo/odoo/pull/55959
task-2157252
Diffstat (limited to 'addons/web_editor/static/src/js/editor/snippets.options.js')
| -rw-r--r-- | addons/web_editor/static/src/js/editor/snippets.options.js | 8 |
1 files changed, 5 insertions, 3 deletions
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 e5c1108695c..83ec0c58530 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -1351,13 +1351,15 @@ const MediapickerUserValueWidget = UserValueWidget.extend({ */ async start() { await this._super(...arguments); + const iconEl = document.createElement('i'); if (this.options.dataAttributes.buttonStyle) { - const iconEl = document.createElement('i'); iconEl.classList.add('fa', 'fa-fw', 'fa-camera'); - this.containerEl.appendChild(iconEl); } else { - this.el.classList.add('fa', 'fa-fw', 'fa-edit'); + iconEl.classList.add('fa', 'fa-fw', 'fa-refresh', 'mr-1'); + this.el.classList.add('o_we_no_toggle'); + this.containerEl.textContent = _t("Replace media"); } + $(this.containerEl).prepend(iconEl); }, //-------------------------------------------------------------------------- |
