fix: hide "mark as unread" button on unread books for Stripstream provider
Return null for readProgress when Stripstream book status is "unread" with no current page, aligning behavior with Komga provider. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -34,11 +34,14 @@ export class StripstreamAdapter {
|
||||
volume: book.volume ?? null,
|
||||
pageCount: book.page_count ?? 0,
|
||||
thumbnailUrl: `/api/stripstream/images/books/${book.id}/thumbnail`,
|
||||
readProgress: {
|
||||
page: book.reading_current_page ?? null,
|
||||
completed: book.reading_status === "read",
|
||||
lastReadAt: book.reading_last_read_at ?? null,
|
||||
},
|
||||
readProgress:
|
||||
book.reading_status === "unread" && !book.reading_current_page
|
||||
? null
|
||||
: {
|
||||
page: book.reading_current_page ?? null,
|
||||
completed: book.reading_status === "read",
|
||||
lastReadAt: book.reading_last_read_at ?? null,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@@ -52,11 +55,14 @@ export class StripstreamAdapter {
|
||||
volume: book.volume ?? null,
|
||||
pageCount: book.page_count ?? 0,
|
||||
thumbnailUrl: `/api/stripstream/images/books/${book.id}/thumbnail`,
|
||||
readProgress: {
|
||||
page: book.reading_current_page ?? null,
|
||||
completed: book.reading_status === "read",
|
||||
lastReadAt: book.reading_last_read_at ?? null,
|
||||
},
|
||||
readProgress:
|
||||
book.reading_status === "unread" && !book.reading_current_page
|
||||
? null
|
||||
: {
|
||||
page: book.reading_current_page ?? null,
|
||||
completed: book.reading_status === "read",
|
||||
lastReadAt: book.reading_last_read_at ?? null,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user