IO-879 Added bill enter cancel confirmation

This commit is contained in:
Patrick Fic
2021-04-12 14:24:10 -07:00
parent d9c5b0186e
commit b7c3166fab
5 changed files with 29 additions and 1 deletions

View File

@@ -191,7 +191,10 @@ function BillEnterModalContainer({
};
const handleCancel = () => {
toggleModalVisible();
const r = window.confirm(t("general.labels.cancel"));
if (r === true) {
toggleModalVisible();
}
};
useEffect(() => {
@@ -227,6 +230,7 @@ function BillEnterModalContainer({
width={"90%"}
visible={billEnterModal.visible}
okText={t("general.actions.save")}
keyboard="false"
onOk={() => form.submit()}
onCancel={handleCancel}
afterClose={() => form.resetFields()}

View File

@@ -778,6 +778,7 @@
"actions": "Actions",
"areyousure": "Are you sure?",
"barcode": "Barcode",
"cancel": "Are you sure you want to cancel? Your changes will not be saved.",
"confirmpassword": "Confirm Password",
"email": "Email",
"errors": "Errors",

View File

@@ -778,6 +778,7 @@
"actions": "Comportamiento",
"areyousure": "",
"barcode": "código de barras",
"cancel": "",
"confirmpassword": "",
"email": "",
"errors": "",

View File

@@ -778,6 +778,7 @@
"actions": "actes",
"areyousure": "",
"barcode": "code à barre",
"cancel": "",
"confirmpassword": "",
"email": "",
"errors": "",