mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2025-01-11 16:29:08 +01:00
search loading message
This commit is contained in:
parent
a0115d88b0
commit
e79d0b9dd2
@ -51,7 +51,7 @@ export default function SearchSingle() {
|
|||||||
setError(false);
|
setError(false);
|
||||||
setSearchTerm(value);
|
setSearchTerm(value);
|
||||||
setMangas([]);
|
setMangas([]);
|
||||||
setMessage('');
|
setMessage('loading...');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -61,6 +61,7 @@ export default function SearchSingle() {
|
|||||||
client.get(`/api/v1/source/${sourceId}/search/${searchTerm}/${lastPageNum}`)
|
client.get(`/api/v1/source/${sourceId}/search/${searchTerm}/${lastPageNum}`)
|
||||||
.then((response) => response.data)
|
.then((response) => response.data)
|
||||||
.then((data: { mangaList: IManga[], hasNextPage: boolean }) => {
|
.then((data: { mangaList: IManga[], hasNextPage: boolean }) => {
|
||||||
|
setMessage('');
|
||||||
if (data.mangaList.length > 0) {
|
if (data.mangaList.length > 0) {
|
||||||
setMangas([
|
setMangas([
|
||||||
...mangas,
|
...mangas,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user