improve dialogs, option to open image dialog in edit then delete (#951)

* fix: change Content-Disposition to inline for proper document display in attachments

* feat: overhaul how dialog system works, add delete to image dialog and add button to open image dialog on edit page

* chore: remove unneeded console log

* fix: ensure cleanup of dialog callbacks on unmount in BarcodeModal, CreateModal, and ImageDialog components
This commit is contained in:
Tonya
2025-08-23 19:22:33 +01:00
committed by GitHub
parent 6fcd10d796
commit 27e9eb2277
14 changed files with 336 additions and 109 deletions

View File

@@ -93,7 +93,7 @@
};
const handleButtonClick = () => {
openDialog(DialogID.ProductImport, { barcode: detectedBarcode.value });
openDialog(DialogID.ProductImport, { params: { barcode: detectedBarcode.value } });
};
const startScanner = async () => {