From d141aada17154872623cddfadb224170580814e3 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Sat, 4 Sep 2021 17:44:17 +0200 Subject: show appropriate message when repository returns no custom content for given URL --- html/display-panel.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'html') diff --git a/html/display-panel.js b/html/display-panel.js index 66e51a6..7d801c9 100644 --- a/html/display-panel.js +++ b/html/display-panel.js @@ -497,6 +497,11 @@ var max_query_result_id = 0; function show_query_successful_result(result_item, repo_url, result) { + if (result.length === 0) { + show_message(result_item, "No results :("); + return; + } + const cloned_ul_template = clone_template("result_patterns_list"); set_appended(result_item, cloned_ul_template.ul); -- cgit v1.2.3