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