show next song in page view

This commit is contained in:
2025-01-03 21:01:56 +01:00
parent 898c6c4d7e
commit 88a574aa80
8 changed files with 41 additions and 39 deletions

View File

@@ -13,14 +13,15 @@ import {
faArrowUpRightFromSquare,
faBox,
faBoxOpen,
faExternalLinkAlt,
faChevronRight,
faFile,
faFileDownload,
faFileLines,
faLock,
faMagnifyingGlassMinus,
faMagnifyingGlassPlus,
faSliders, faUnlock,
faSliders,
faUnlock,
faUser,
faUsers,
} from '@fortawesome/free-solid-svg-icons';
@@ -61,6 +62,7 @@ export class ShowComponent implements OnInit, OnDestroy {
public textSize = 1;
public faFileLines = faFileLines;
public faFile = faFile;
public faNextSong = faChevronRight;
private subs: Subscription[] = [];
public constructor(
@@ -198,6 +200,12 @@ export class ShowComponent implements OnInit, OnDestroy {
if (useSwiper) openFullscreen();
else closeFullscreen();
}
public getNextSong(showSongs: ShowSong[], i: number): string {
if (!showSongs || showSongs.length === 0) return '';
const song = showSongs[i + 1];
return song?.title ?? '';
}
}
export interface Swiper {