You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
724 B

/** @odoo-module */
import AbstractAwaitablePopup from 'point_of_sale.AbstractAwaitablePopup';
import Registries from 'point_of_sale.Registries';
import {
_lt
} from "@web/core/l10n/translation";
/**
* CustomMessageInfoPopup component for displaying custom messages as an informational popup.
* Inherits from AbstractAwaitablePopup.
*/
class CustomMessageInfoPopup extends AbstractAwaitablePopup {}
CustomMessageInfoPopup.template = 'CustomMessageInfoPopup';
CustomMessageInfoPopup.defaultProps = {
confirmText: _lt('Ok'),
title: '',
body: '',
};
// Add the CustomMessageInfoPopup component to the Point of Sale registries.
Registries.Component.add(CustomMessageInfoPopup);
return CustomMessageInfoPopup;