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);
|
const d = this.activeTapDisplay(c);
|
||||||
if (d) return labels[d.kind] || d.kind;
|
if (d) return labels[d.kind] || d.kind;
|
||||||
if (!c?.last_tap) return '…';
|
if (!c?.last_tap) return '…';
|
||||||
return labels[c.last_tap] || c.last_tap;
|
return '—';
|
||||||
},
|
},
|
||||||
tapTitle(c) {
|
tapTitle(c) {
|
||||||
if (!this.state?.live_stream) return 'Live-Stream aus';
|
if (!this.state?.live_stream) return 'Live-Stream aus';
|
||||||
if (!this.tapNotifyAny(c)) return 'Tap-Notify nicht konfiguriert (S/D/T)';
|
if (!this.tapNotifyAny(c)) return 'Tap-Notify nicht konfiguriert (S/D/T)';
|
||||||
const d = this.activeTapDisplay(c);
|
const d = this.activeTapDisplay(c);
|
||||||
if (!d && !c?.last_tap) return 'Warte auf Tap-Event…';
|
if (d) {
|
||||||
const kind = d?.kind || c?.last_tap;
|
const age = (Date.now() - d.shownAt) + ' ms her';
|
||||||
const at = d?.shownAt || c?.last_tap_at;
|
return `Tap: ${d.kind} · ${age}`;
|
||||||
const age = at ? (Date.now() - at) + ' ms her' : '';
|
}
|
||||||
return `Letzter Tap: ${kind}${age ? ' · ' + age : ''}`;
|
if (!c?.last_tap) return 'Warte auf Tap-Event…';
|
||||||
|
return 'Bereit — letzter Tap ausgeblendet';
|
||||||
},
|
},
|
||||||
tapCellClass(c) {
|
tapCellClass(c) {
|
||||||
if (this.activeTapDisplay(c)) return 'tap-hit';
|
if (this.activeTapDisplay(c)) return 'tap-hit';
|
||||||
if (!c?.last_tap || !c?.last_tap_at) return 'text-muted';
|
return 'text-muted';
|
||||||
if (Date.now() - c.last_tap_at < this.TAP_DISPLAY_MS) return 'tap-hit';
|
|
||||||
return '';
|
|
||||||
},
|
},
|
||||||
formatSize(n) {
|
formatSize(n) {
|
||||||
if (n == null) return '';
|
if (n == null) return '';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user