test
This commit is contained in:
@ -250,21 +250,20 @@ export function createPrintStore() {
|
||||
}
|
||||
}
|
||||
|
||||
async function refreshJob() {
|
||||
if (!job) return;
|
||||
try {
|
||||
const res = await fetch(`/api/print/${job.job_id}`);
|
||||
if (!res.ok) return;
|
||||
job = await res.json();
|
||||
|
||||
// Автопродолжение срабатывает ТОЛЬКО для awaiting_pickup
|
||||
if (job.phase === 'awaiting_pickup' && autoContinue) {
|
||||
advanceJob();
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('refresh error:', e);
|
||||
}
|
||||
}
|
||||
async function refreshJob() {
|
||||
if (!job) return;
|
||||
try {
|
||||
const res = await fetch(`/api/print/${job.job_id}`);
|
||||
if (!res.ok) return;
|
||||
job = await res.json();
|
||||
|
||||
if (job.phase === 'awaiting_pickup' && autoContinue) {
|
||||
advanceJob();
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('refresh error:', e);
|
||||
}
|
||||
}
|
||||
|
||||
async function cancelJob() {
|
||||
if (!job) return;
|
||||
|
||||
Reference in New Issue
Block a user