summaryrefslogtreecommitdiff
path: root/addons/web_editor
diff options
context:
space:
mode:
authorJulien Mougenot <jum@odoo.com>2020-06-12 09:01:44 +0000
committerJulien Mougenot <jum@odoo.com>2020-06-12 09:01:50 +0000
commitc4786fccfd23360a02e442c48ae2fb9f1e70aa4c (patch)
tree95434422bfecf324a2112fadfc078a9bced134e7 /addons/web_editor
parentd093fd4236a7c7f18645a85970cbdda6fec44c92 (diff)
[IMP] *: update notifications to optional title
closes odoo/odoo#52826 Related: odoo/enterprise#11084 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/web_editor')
-rw-r--r--addons/web_editor/static/src/js/editor/snippets.editor.js3
-rw-r--r--addons/web_editor/static/tests/field_html_tests.js2
2 files changed, 2 insertions, 3 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 eda2b4b3fc3..7ad57374a1c 100644
--- a/addons/web_editor/static/src/js/editor/snippets.editor.js
+++ b/addons/web_editor/static/src/js/editor/snippets.editor.js
@@ -2037,8 +2037,7 @@ var SnippetsMenu = Widget.extend({
reason.event.preventDefault();
this.close();
self.displayNotification({
- title: _t("Something went wrong."),
- message: _.str.sprintf(_t("The module <strong>%s</strong> could not be installed."), name),
+ message: _.str.sprintf(_t("Could not install module <strong>%s</strong>"), name),
type: 'danger',
sticky: true,
});
diff --git a/addons/web_editor/static/tests/field_html_tests.js b/addons/web_editor/static/tests/field_html_tests.js
index eb62efa8a48..59d2ce65718 100644
--- a/addons/web_editor/static/tests/field_html_tests.js
+++ b/addons/web_editor/static/tests/field_html_tests.js
@@ -151,7 +151,7 @@ QUnit.module('web_editor', {}, function () {
"className": undefined,
"message": "<ul><li>Header</li></ul>",
"sticky": undefined,
- "title": "The following fields are invalid:",
+ "title": "Invalid fields:",
"type": "danger"
});
}