blob: 8eae270f23a24a3186ef2ff5fee3f78513ee16b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
odoo.define('web.PublicCrashManager', function (require) {
"use strict";
const core = require('web.core');
const CrashManager = require('web.CrashManager').CrashManager;
const PublicCrashManager = CrashManager.extend({
//--------------------------------------------------------------------------
// Private
//--------------------------------------------------------------------------
/**
* @override
*/
_displayWarning(message, title, options) {
this.displayNotification(Object.assign({}, options, {
title,
message,
sticky: true,
}));
},
});
core.serviceRegistry.add('crash_manager', PublicCrashManager);
return {
CrashManager: PublicCrashManager,
};
});
|