list file attachments
This commit is contained in:
@@ -9,10 +9,12 @@ export const songSwitch = // the fade-in/fade-out animation.
|
||||
// fade in when created. this could also be written as transition('void => *')
|
||||
transition(':enter', [
|
||||
style({opacity: 0}),
|
||||
animate(600)
|
||||
animate(1200, style({opacity: 0})),
|
||||
animate(1200, style({opacity: 1})),
|
||||
]),
|
||||
|
||||
// fade out when destroyed. this could also be written as transition('void => *')
|
||||
transition(':leave',
|
||||
animate(600, style({opacity: 0})))
|
||||
animate(1200, style({opacity: 0}))
|
||||
)
|
||||
])
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user