summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/services
diff options
context:
space:
mode:
authorfja-odoo <fja@odoo.com>2019-08-05 16:06:01 +0000
committerfja-odoo <fja@odoo.com>2019-08-09 14:17:31 +0000
commit83310f44049e500306c3c27a5d9b7e874e79b934 (patch)
treefc7736ac41f764dbaa532f372f542a515722c595 /addons/web/static/src/js/services
parent9c3fe4aae29e4a92c071c99873d020c44b866308 (diff)
[IMP] *: change title and subtitle of warnings
* = portal, test_website, web, website The title will now be "Someting went wrong." and we will no longer display the error type as it is not usefull info to the user. The message of the warning modal was not displayed right if too long. Now it will be displayed properly. Related to https://github.com/odoo/odoo/pull/32132 and https://github.com/odoo/odoo/pull/35209 Part of https://github.com/odoo/odoo/pull/35342 task-2047628
Diffstat (limited to 'addons/web/static/src/js/services')
-rw-r--r--addons/web/static/src/js/services/crash_manager.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/addons/web/static/src/js/services/crash_manager.js b/addons/web/static/src/js/services/crash_manager.js
index 6baca444788..e08f87c8fcb 100644
--- a/addons/web/static/src/js/services/crash_manager.js
+++ b/addons/web/static/src/js/services/crash_manager.js
@@ -247,9 +247,8 @@ var CrashManager = AbstractService.extend({
return;
}
var message = error.data ? error.data.message : error.message;
- var title = _.str.capitalize(error.type) || _t("Oops Something went wrong !");
- var subtitle = error.data ? error.data.title : error.title;
- return this._displayWarning(message, title, subtitle, options);
+ var title = _.str.capitalize(error.type) || _t("Something went wrong !");
+ return this._displayWarning(message, title, options);
},
show_error: function (error) {
if (!active) {
@@ -315,14 +314,12 @@ var CrashManager = AbstractService.extend({
* @private
* @param {string} message
* @param {string} title
- * @param {string} subtitle
* @param {Object} options
*/
- _displayWarning: function (message, title, subtitle, options) {
+ _displayWarning: function (message, title, options) {
return new WarningDialog(this, {
...options,
title,
- subtitle,
}, {
message,
}).open();