forked from Qortal/qortal
Show "File not found" on the loading screen when navigating to a non-existent resource.
This commit is contained in:
parent
04f248bcdd
commit
380ba5b8c2
@ -97,8 +97,14 @@
|
||||
else if (status.id == "DOWNLOADED") {
|
||||
textStatus = status.description;
|
||||
}
|
||||
else if (status.id == "NOT_PUBLISHED") {
|
||||
document.getElementById("title").innerHTML = "File not found";
|
||||
document.getElementById("description").innerHTML = "";
|
||||
document.getElementById("c").style.opacity = "0.5";
|
||||
textStatus = status.description;
|
||||
}
|
||||
|
||||
if (status.localChunkCount != null && status.totalChunkCount != null) {
|
||||
if (status.localChunkCount != null && status.totalChunkCount != null && status.totalChunkCount > 0) {
|
||||
textProgress = "Files downloaded: " + status.localChunkCount + " / " + status.totalChunkCount;
|
||||
}
|
||||
|
||||
@ -276,8 +282,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
|
||||
<div id="panel-outer">
|
||||
<div id="panel">
|
||||
<h2>Loading</h2>
|
||||
<p>
|
||||
<h2 id="title">Loading</h2>
|
||||
<p id="description">
|
||||
Files are being retrieved from the Qortal Data Network.
|
||||
This page will refresh automatically when the content becomes available.
|
||||
</p>
|
||||
|
Loading…
Reference in New Issue
Block a user