14 lines
1.1 KiB
Diff
14 lines
1.1 KiB
Diff
diff --git a/packages/webui/src/public/app.js b/packages/webui/src/public/app.js
|
|
index 2084ff63..2de73dc9 100644
|
|
--- a/packages/webui/src/public/app.js
|
|
+++ b/packages/webui/src/public/app.js
|
|
@@ -282,7 +282,7 @@
|
|
// Freshness line in the command bar: when the board last scanned, and warning words when the last refresh failed.
|
|
function fresh() {
|
|
const at = Date.parse(data?.generatedAt), ago = Number.isFinite(at) ? age(Math.max(0, Math.round((Date.now() - at) / 1000))) : null;
|
|
- if (!data) { $('fresh-board').innerHTML = failed === 'refused' ? 'Board <span class="warn">not read: refused</span>' : failed ? 'Board <span class="warn">not read: the read failed</span>' : 'Board not read yet'; return; }
|
|
+ if (!data) { $('fresh-board').innerHTML = failed ? 'Board <span class="warn">not read: the read failed</span>' : 'Board not read yet'; return; }
|
|
const scan = `Board scanned <b>${esc(Number.isFinite(at) ? `${new Date(at).toISOString().slice(11, 19)} UTC` : 'unknown')}</b>${ago ? ` (${ago} ago)` : ''}`;
|
|
$('fresh-board').innerHTML = failed ? `${scan} · <span class="warn">stale: the last refresh failed</span>` : scan;
|
|
}
|