mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-04 14:33:41 +01:00
realized that 'pausing' and 'resuming' are also states while printing
This commit is contained in:
parent
047f7af99a
commit
365783204a
@ -32,7 +32,9 @@ export default function Component({ service }) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state === "Printing" || state === "Paused") {
|
const printingStateFalgs = ["Printing", "Paused", "Pausing", "Resuming"];
|
||||||
|
|
||||||
|
if (printingStateFalgs.includes(state)) {
|
||||||
const { completion } = jobStats.progress;
|
const { completion } = jobStats.progress;
|
||||||
|
|
||||||
if (!jobStats || !completion) {
|
if (!jobStats || !completion) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user