Show error for chapter without pages
This commit is contained in:
@@ -734,6 +734,7 @@
|
|||||||
"error": {
|
"error": {
|
||||||
"label": {
|
"label": {
|
||||||
"next_chapter_does_not_exist": "There is no next chapter to open",
|
"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"
|
"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) => ({
|
const pages = range(chapter.pageCount).map((index) => ({
|
||||||
index,
|
index,
|
||||||
src: requestManager.getChapterPageUrl(mangaId, chapterIndex, index),
|
src: requestManager.getChapterPageUrl(mangaId, chapterIndex, index),
|
||||||
|
|||||||
Reference in New Issue
Block a user