fix(slice-modal): disable Slice button until preview slice resolves

Until the preview slice / embedded-metadata read returns the per-plate
  filament list, the modal renders a synthetic single-slot fallback so
  the auto-pick has something to bind against. That made the Slice button
  enabled the moment the modal opened, even before the slicer had told us
  which AMS slots the plate actually consumes — clicking would dispatch
  against opaque defaults.

  Add filamentReqsQuery.isSuccess to the isReady chain so the button
  stays disabled while the preview slice is in flight (or before the
  backend's /filament-requirements call settles for sliced files) and
  flips to enabled the moment the real slot list lands and auto-pick
  fills it.
This commit is contained in:
maziggy
2026-05-06 09:27:47 +02:00
parent 8a31397171
commit a64cfbbd36
4 changed files with 23 additions and 16 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -26,7 +26,7 @@
<!-- Splash screens for iOS -->
<link rel="apple-touch-startup-image" href="./img/android-chrome-512x512.png" />
<script type="module" crossorigin src="./assets/index-B2mJSviN.js"></script>
<script type="module" crossorigin src="./assets/index-B--K0Euf.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-CzFVl3Rw.css">
</head>
<body>