Show light index

This commit is contained in:
Thomas Forgione 2024-06-22 15:48:46 +02:00
parent 15caad7fad
commit 0f424ad039
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ export class Engine {
*/ */
showImage(led: Led): void { showImage(led: Led): void {
if (led.on) { if (led.on) {
this.selectedObject.innerText = led.name; this.selectedObject.innerText = led.name + ' (' + (<number> this.leds.currentLedIndex + 1) + '/' + this.leds.children.length + ')';
this.ledView.src = '/data/small/' + led.name; this.ledView.src = '/data/small/' + led.name;
this.ledView.style.display = 'block'; this.ledView.style.display = 'block';
} else { } else {