aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-05-21 20:59:41 +0200
committer0neGal <mail@0negal.com>2022-05-21 20:59:41 +0200
commit34be329370ae8e39df260e366c4128f9a5d79b78 (patch)
tree25ead51dd4840ae6384be10d9f9f5332e8b6843e /src/app
parentd720773525d04e1deebcbe6a12021ed568a27104 (diff)
downloadViper-34be329370ae8e39df260e366c4128f9a5d79b78.tar.gz
Viper-34be329370ae8e39df260e366c4128f9a5d79b78.zip
fixed infinite loading depending on the filters
If the only results when searching are elements that are filtered then it just infinitely shows loading instead showing "No results..."
Diffstat (limited to 'src/app')
-rw-r--r--src/app/browser.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app/browser.js b/src/app/browser.js
index 0ec8746..b653e48 100644
--- a/src/app/browser.js
+++ b/src/app/browser.js
@@ -173,6 +173,10 @@ var Browser = {
new BrowserElFromObj(res[i].item);
count++;
}
+
+ if (count < 1) {
+ Browser.loading(lang("gui.browser.noresults"));
+ }
},
setbutton: (mod, string) => {
mod = normalize(mod);