summaryrefslogtreecommitdiff
path: root/addons/web_editor/controllers
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2020-08-13 15:35:40 +0000
committerqsm-odoo <qsm@odoo.com>2020-08-13 15:44:48 +0000
commitc5fee9d009329691db58a16c1f90eac734749f4d (patch)
tree35217344dca023e8156a172a7b81561a557106bc /addons/web_editor/controllers
parent4afdebbb7e919878966a3b894ce99e913cf046e4 (diff)
[FIX] web_editor, *: restore custom snippets thumbnails
*: website Since [1], the thumbnails of the saved snippets were not right anymore, all fallbacking to the default image. This is because snippets thumbs now use svg files instead of png and the snippet saving feature did not allow it. This commit fixes that and makes the feature more robust. - Allow to use any original thumbnail, and not only for website app. - Remove useless defaut image, a fallback for when the feature is broken is useless. - Identify snippets by key instead of by main class (possible since the new `data-snippet` attribute on snippets). [1]: https://github.com/odoo/odoo/commit/b7fe2bdae2f45372c0d538767a226a413b806f3f closes odoo/odoo#55896 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web_editor/controllers')
0 files changed, 0 insertions, 0 deletions