Skip to content
Snippets Groups Projects
Commit 416b79d5 authored by jojohoch's avatar jojohoch
Browse files

[player] Change the duration of the highlighting of anchors

#733
parent 092ba7e9
No related branches found
No related tags found
No related merge requests found
Pipeline #67828 failed
......@@ -12,6 +12,8 @@ Player
### Fehlerbehebungen
- Korrigiert die Validierung von Eingabefeldern mit eingestellter maximaler Länge
### Änderungen
- Ändert die Dauer von Texthervorhebung auf 60 Sekunden
## 2.5.0
- Unterstützung neuer Funktionen; siehe Allgemein
......
......@@ -6,6 +6,7 @@ import { delay, of, Subscription } from 'rxjs';
})
export class AnchorService {
private activeAnchors: { [id: string]: Subscription } = {};
private duration = 60000;
toggleAnchor(anchorId: string): void {
if (this.activeAnchors[anchorId]) {
......@@ -22,7 +23,7 @@ export class AnchorService {
private addAnchor(anchorId: string): void {
this.activeAnchors[anchorId] = of(true)
.pipe(
delay(15000))
delay(this.duration))
.subscribe(() => {
this.removeAnchor(anchorId);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment