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.
18 lines
718 B
18 lines
718 B
/** @odoo-module */
|
|
import AbstractAwaitablePopup from 'point_of_sale.AbstractAwaitablePopup';
|
|
import Registries from 'point_of_sale.Registries';
|
|
import { _lt } from "@web/core/l10n/translation";
|
|
/**
|
|
* CustomMessageAlertPopup component for displaying custom messages as an alert popup.
|
|
* Inherits from AbstractAwaitablePopup.
|
|
*/
|
|
class CustomMessageAlertPopup extends AbstractAwaitablePopup {}
|
|
CustomMessageAlertPopup.template = 'CustomMessageAlertPopup';
|
|
CustomMessageAlertPopup.defaultProps = {
|
|
confirmText: _lt('Ok'),
|
|
title: '',
|
|
body: '',
|
|
};
|
|
// Add the CustomMessageAlertPopup component to the Point of Sale registries.
|
|
Registries.Component.add(CustomMessageAlertPopup);
|
|
return CustomMessageAlertPopup
|