Compare commits

...

2 Commits

Author SHA1 Message Date
6abff69bcb
Fix transaction item modal closing when scanning barcode
All checks were successful
Docker Image CI / build (push) Successful in 2m26s
2024-07-11 21:07:04 +01:00
a48df4e2da
Disable page prefetching 2024-07-11 19:46:28 +01:00
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@
<meta name="color-scheme" content="light dark" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="view-transition" content="same-origin" />
<meta name="turbo-prefetch" content="false" />
<link rel="stylesheet" type="text/css" href="/css/main.css" asp-append-version="true" data-turbo-track="reload" />

View File

@ -13,7 +13,7 @@ export default class ModalController extends Controller {
if (!this.element.open) {
return;
}
if (event.type === "turbo:submit-end" && (event.detail.formSubmission.method === 0 || !event.detail.success)) {
if (event.type === "turbo:submit-end" && (event.detail.formSubmission.method === "get" || !event.detail.success)) {
// Don't close modal if form method was GET or submission failed
return;
}