blob: 865779c475e4e1add766a992e5727b0c26bc7103 (
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
|
odoo.define('point_of_sale.ErrorPopup', function(require) {
'use strict';
const AbstractAwaitablePopup = require('point_of_sale.AbstractAwaitablePopup');
const Registries = require('point_of_sale.Registries');
// formerly ErrorPopupWidget
class ErrorPopup extends AbstractAwaitablePopup {
mounted() {
this.playSound('error');
}
}
ErrorPopup.template = 'ErrorPopup';
ErrorPopup.defaultProps = {
confirmText: 'Ok',
cancelText: 'Cancel',
title: 'Error',
body: '',
};
Registries.Component.add(ErrorPopup);
return ErrorPopup;
});
|