mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
fix(koreader): allow plugin API to reset read status to unread
The catalog read-status enum omitted unread, so a device write could only be undone from the web dashboard. Add it to the settable enum and the plugin status dialog, and mark Unread as current when a book has no status row. Closes #853
This commit is contained in:
@@ -148,8 +148,10 @@ export type KoreaderCatalogSortOrder = "asc" | "desc";
|
||||
export type KoreaderCatalogReadStatusFilter = "unread" | "reading" | "finished";
|
||||
|
||||
// Read statuses the catalog detail page can set on a book. A subset of the
|
||||
// full ReadStatus enum, chosen for reading-device ergonomics.
|
||||
export type KoreaderCatalogSettableReadStatus = "want_to_read" | "reading" | "on_hold" | "read" | "abandoned";
|
||||
// full ReadStatus enum, chosen for reading-device ergonomics. "unread" is the
|
||||
// default state, so it has to stay settable or a device write becomes a one-way
|
||||
// door that only the web dashboard can undo.
|
||||
export type KoreaderCatalogSettableReadStatus = "unread" | "want_to_read" | "reading" | "on_hold" | "read" | "abandoned";
|
||||
|
||||
export interface KoreaderCatalogSeriesSummary {
|
||||
total: number;
|
||||
|
||||
Reference in New Issue
Block a user