show next song in page view
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user