list file attachments

This commit is contained in:
2020-05-13 19:31:57 +02:00
committed by smuddy
parent 536739e651
commit 80e35a7e44
23 changed files with 300 additions and 53 deletions

View File

@@ -46,9 +46,9 @@ export class SongTextComponent implements OnInit {
}
ngOnInit(): void {
public ngOnInit(): void {
setInterval(() => {
if (!this.fullscreen || this.index === -1) {
if (!this.fullscreen || this.index === -1 || !this.viewSections.toArray()[this.index]) {
this.offset = 0;
return;
}
@@ -79,13 +79,12 @@ export class SongTextComponent implements OnInit {
this.chordModeChanged.emit(next);
}
public onClick() {
public onClick(): void {
scrollTo(0, this.elRef.nativeElement.offsetTop - 20);
}
public checkDisabled(i: number) {
public checkDisabled(i: number): boolean {
return this.index !== -1 && this.index !== i;
}
private getNextChordMode(): ChordMode {