refactor: improve server add process

This commit is contained in:
Prayag Prajapati committed 2024-12-10 23:06:50 +05:30
1 parent 7d2659f32b
commit af8dec5844
8 files changed
+279 -138

No files matched your search

+2 -2
View File
@@ -204,12 +204,12 @@ function UserLoginManual() {
</div>
{server.isSuccess && server.data?.LoginDisclaimer && (
<Paper
elevation={5}
elevation={0}
style={{
marginTop: "1em",
padding: "1em",
borderRadius: "15px",
width: "32em",
width: "28em",
}}
>
<div
+11 -2
View File
@@ -1036,7 +1036,13 @@ function VideoPlayer() {
{playing ? "pause" : "play_arrow"}
</span>
</IconButton>
<IconButton onClick={handleNextChapter}>
<IconButton
disabled={
(item?.Chapters?.[item.Chapters?.length - 1]
?.StartPositionTicks ?? 0) <= progress
}
onClick={handleNextChapter}
>
<span className="material-symbols-rounded fill">
last_page
</span>
@@ -1114,7 +1120,10 @@ function VideoPlayer() {
</span>
</IconButton>
<QueueButton />
<IconButton onClick={handleShowChapterList}>
<IconButton
disabled={item?.Chapters?.length === 0}
onClick={handleShowChapterList}
>
<span className="material-symbols-rounded">list</span>
</IconButton>
<Menu