IO-952 add confirm to bill enter with discrepancy.
This commit is contained in:
9
client/src/utils/asyncConfirm.js
Normal file
9
client/src/utils/asyncConfirm.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function confirmDialog(msg) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
let confirmed = window.confirm(msg);
|
||||
|
||||
return confirmed ? resolve(true) : resolve(false);
|
||||
});
|
||||
}
|
||||
|
||||
export default confirmDialog;
|
||||
Reference in New Issue
Block a user