Fix queue badge showing on printers without matching filament (#486)

The purple queue counter badge in the printer card header used the raw
unfiltered queue item count, so it appeared on ALL printers of the same
model when a job was scheduled for "any [model]" — even printers without
the matching filament color. The PrinterQueueWidget below it (which
shows "Clear Plate & Start") already filtered by filament type + color.

Apply the same filament compatibility filter (type check + color override
check) to the badge count so it only shows on printers that can actually
run the queued jobs.
This commit is contained in:
maziggy
2026-02-28 14:36:12 +01:00
parent b1cc3462ed
commit d3bae07edf
6 changed files with 8734 additions and 2 deletions
+5
View File
@@ -23,8 +23,13 @@
<!-- Splash screens for iOS -->
<link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
<<<<<<< HEAD
<script type="module" crossorigin src="/assets/index-CxFtC4Kb.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DJjXosw8.css">
=======
<script type="module" crossorigin src="/assets/index-tKUolDFn.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BKdrvUCu.css">
>>>>>>> 7eb7bf7 (Fix queue badge showing on printers without matching filament (#486))
</head>
<body>
<div id="root"></div>