Clear tap status in dashboard after 2s display window.
formatLastTap no longer falls back to server last_tap once the ephemeral tapDisplay timer expires. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
31e539052a
commit
498b89d7ba
@ -827,23 +827,22 @@
|
||||
const d = this.activeTapDisplay(c);
|
||||
if (d) return labels[d.kind] || d.kind;
|
||||
if (!c?.last_tap) return '…';
|
||||
return labels[c.last_tap] || c.last_tap;
|
||||
return '—';
|
||||
},
|
||||
tapTitle(c) {
|
||||
if (!this.state?.live_stream) return 'Live-Stream aus';
|
||||
if (!this.tapNotifyAny(c)) return 'Tap-Notify nicht konfiguriert (S/D/T)';
|
||||
const d = this.activeTapDisplay(c);
|
||||
if (!d && !c?.last_tap) return 'Warte auf Tap-Event…';
|
||||
const kind = d?.kind || c?.last_tap;
|
||||
const at = d?.shownAt || c?.last_tap_at;
|
||||
const age = at ? (Date.now() - at) + ' ms her' : '';
|
||||
return `Letzter Tap: ${kind}${age ? ' · ' + age : ''}`;
|
||||
if (d) {
|
||||
const age = (Date.now() - d.shownAt) + ' ms her';
|
||||
return `Tap: ${d.kind} · ${age}`;
|
||||
}
|
||||
if (!c?.last_tap) return 'Warte auf Tap-Event…';
|
||||
return 'Bereit — letzter Tap ausgeblendet';
|
||||
},
|
||||
tapCellClass(c) {
|
||||
if (this.activeTapDisplay(c)) return 'tap-hit';
|
||||
if (!c?.last_tap || !c?.last_tap_at) return 'text-muted';
|
||||
if (Date.now() - c.last_tap_at < this.TAP_DISPLAY_MS) return 'tap-hit';
|
||||
return '';
|
||||
return 'text-muted';
|
||||
},
|
||||
formatSize(n) {
|
||||
if (n == null) return '';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user