[FIX] gamification, web: Edge does not support obj spread operator

As of August 20 2019, Microsoft Edge partially supports ECMA2018.
For instance, `Promise.prototype.finally()` can be used, but the
spread operator does not work on objects.

Task-ID 2056070
This commit is contained in:
Alexandre Kühn
2019-08-28 08:50:56 +00:00
parent d431f94c75
commit 6f6445be8c
3 changed files with 6 additions and 9 deletions
@@ -11,10 +11,9 @@ CrashManager.include({
* @override
*/
getMapTitle() {
return {
...this._super(...arguments),
return Object.assign({}, this._super(...arguments), {
karma_error: _lt("Karma Error"),
};
});
},
});
});
@@ -14,12 +14,11 @@ const PublicCrashManager = CrashManager.extend({
* @override
*/
_displayWarning(message, title, options) {
this.displayNotification({
...options,
this.displayNotification(Object.assign({}, options, {
title,
message,
sticky: true,
});
}));
},
});
@@ -317,10 +317,9 @@ var CrashManager = AbstractService.extend({
* @param {Object} options
*/
_displayWarning: function (message, title, options) {
return new WarningDialog(this, {
...options,
return new WarningDialog(this, Object.assign({}, options, {
title,
}, {
}), {
message,
}).open();
},