Show error for chapter without pages
This commit is contained in:
@@ -734,6 +734,7 @@
|
||||
"error": {
|
||||
"label": {
|
||||
"next_chapter_does_not_exist": "There is no next chapter to open",
|
||||
"no_pages_found": "No pages found",
|
||||
"prev_chapter_does_not_exist": "There is no previous chapter to open"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -503,6 +503,10 @@ export function Reader() {
|
||||
);
|
||||
}
|
||||
|
||||
if (!chapter.pageCount) {
|
||||
return <EmptyViewAbsoluteCentered message={t('reader.error.label.no_pages_found')} retry={doFetchPages} />;
|
||||
}
|
||||
|
||||
const pages = range(chapter.pageCount).map((index) => ({
|
||||
index,
|
||||
src: requestManager.getChapterPageUrl(mangaId, chapterIndex, index),
|
||||
|
||||
Reference in New Issue
Block a user