Check the loading state before allowing a search retry

This commit is contained in:
itepechi 2024-06-14 14:28:55 +09:00
parent 745b8b0c7b
commit 3754fa1e86
Signed by: itepechi
GPG key ID: D948CE1B5ACD0B25

View file

@ -95,7 +95,7 @@ const Search = {
}, },
methods: { methods: {
newQuery (query) { newQuery (query) {
if (this.lastQuery === query) { if (this.lastQuery === query && !this.loading[this.currentResultTab]) {
// Handle search retries // Handle search retries
this.lastQuery = "" // invalidate state this.lastQuery = "" // invalidate state
this.search(query) this.search(query)