mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 12:52:26 +00:00
Align CDN health badge checking icon with torrent badge
This commit is contained in:
1 parent
609d5e725c
commit
c40187f09f
4 files changed
+20
-13
No files matched your search
@@ -989,10 +989,17 @@ export class VideoCard {
|
||||
typeof entry?.status === "string" && entry.status
|
||||
? entry.status
|
||||
: "checking";
|
||||
const fallbackMessages = {
|
||||
healthy: "✅ CDN",
|
||||
offline: "❌ CDN",
|
||||
unknown: "⚠️ CDN",
|
||||
timeout: "⚠️ CDN timed out",
|
||||
checking: "⏳ CDN"
|
||||
};
|
||||
const message =
|
||||
typeof entry?.message === "string" && entry.message
|
||||
? entry.message
|
||||
: "Checking hosted URL…";
|
||||
: fallbackMessages[status] || fallbackMessages.checking;
|
||||
|
||||
badge.className = ["badge", "url-health-badge"].join(" ");
|
||||
|
||||
|
||||
Reference in new issue
Block a user