Feature/download ahead while reading (#464)
* Download next chapters when marking chapter as read while reading * Add "auto delete chapter" settings * Delete chapter after finished reading * Delete chapters after marking them as read * Improve "mark previous as read" action Send only ids of chapters that are actually unread
This commit is contained in:
@@ -49,6 +49,8 @@ import {
|
||||
DequeueChapterDownloadMutationVariables,
|
||||
DequeueChapterDownloadsMutation,
|
||||
DequeueChapterDownloadsMutationVariables,
|
||||
DownloadAheadMutation,
|
||||
DownloadAheadMutationVariables,
|
||||
DownloadStatusSubscription,
|
||||
DownloadStatusSubscriptionVariables,
|
||||
EnqueueChapterDownloadMutation,
|
||||
@@ -171,6 +173,7 @@ import {
|
||||
DELETE_DOWNLOADED_CHAPTERS,
|
||||
DEQUEUE_CHAPTER_DOWNLOAD,
|
||||
DEQUEUE_CHAPTER_DOWNLOADS,
|
||||
DOWNLOAD_AHEAD,
|
||||
ENQUEUE_CHAPTER_DOWNLOAD,
|
||||
ENQUEUE_CHAPTER_DOWNLOADS,
|
||||
REORDER_CHAPTER_DOWNLOAD,
|
||||
@@ -1909,6 +1912,12 @@ export class RequestManager {
|
||||
): AbortableApolloUseMutationResponse<UpdateServerSettingsMutation, UpdateServerSettingsMutationVariables> {
|
||||
return this.doRequest(GQLMethod.USE_MUTATION, UPDATE_SERVER_SETTINGS, undefined, options);
|
||||
}
|
||||
|
||||
public useDownloadAhead(
|
||||
options?: MutationHookOptions<DownloadAheadMutation, DownloadAheadMutationVariables>,
|
||||
): AbortableApolloUseMutationResponse<DownloadAheadMutation, DownloadAheadMutationVariables> {
|
||||
return this.doRequest(GQLMethod.USE_MUTATION, DOWNLOAD_AHEAD, undefined, options);
|
||||
}
|
||||
}
|
||||
|
||||
export const requestManager = new RequestManager();
|
||||
|
||||
Reference in New Issue
Block a user