@atolis-hq/wake 0.2.17 → 0.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -331,10 +331,26 @@ async function renderConfig() {
|
|
|
331
331
|
...data.routingTable.map((r) => el('tr', {}, [
|
|
332
332
|
el('td', { text: r.stage }), el('td', { text: r.action || '' }), el('td', { text: r.tier || '' }),
|
|
333
333
|
el('td', { text: r.runnerName || '' }), el('td', { text: r.model || '' }),
|
|
334
|
-
el('td', {}, (r.candidates || []).map((c) =>
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
334
|
+
el('td', {}, (r.candidates || []).map((c) => {
|
|
335
|
+
if (!c.paused) return el('span', { class: 'chip', text: c.runnerName });
|
|
336
|
+
const btn = el('button', { type: 'button', class: 'btn', text: 'Unpause', style: 'margin-top:0;font-size:0.7rem;padding:0.1rem 0.4rem;' });
|
|
337
|
+
btn.addEventListener('click', async () => {
|
|
338
|
+
btn.disabled = true;
|
|
339
|
+
btn.textContent = 'Unpausing…';
|
|
340
|
+
try {
|
|
341
|
+
await postJson('/runners/' + encodeURIComponent(c.runnerName) + '/unpause');
|
|
342
|
+
await renderConfig();
|
|
343
|
+
} catch (err) {
|
|
344
|
+
btn.disabled = false;
|
|
345
|
+
btn.textContent = 'Unpause';
|
|
346
|
+
document.getElementById('status-summary').textContent = 'unpause failed: ' + err.message;
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
return el('span', { style: 'display:inline-flex;align-items:center;gap:0.25rem;margin-right:0.25rem;' }, [
|
|
350
|
+
el('span', { class: 'chip amber', text: c.runnerName + ' (paused)' }),
|
|
351
|
+
btn,
|
|
352
|
+
]);
|
|
353
|
+
})),
|
|
338
354
|
])),
|
|
339
355
|
]));
|
|
340
356
|
main.appendChild(el('h3', { text: 'Effective config (redacted)' }));
|
package/dist/src/version.js
CHANGED