mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-30 01:12:39 +00:00
Show spinner while recent videos load
This commit is contained in:
1 parent
284bab6cff
commit
fa583f0685
1 file changed
+9
-6
@@ -7531,14 +7531,17 @@ class bitvidApp {
|
||||
this.videoSubscription = null;
|
||||
}
|
||||
|
||||
if (this.videoList) {
|
||||
if (this._lastRenderedVideoListElement !== this.videoList) {
|
||||
this.lastRenderedVideoSignature = null;
|
||||
}
|
||||
this.videoList.innerHTML = getSidebarLoadingMarkup(
|
||||
"Fetching recent videos…"
|
||||
);
|
||||
}
|
||||
|
||||
// The rest of your existing logic:
|
||||
if (!this.videoSubscription) {
|
||||
if (this.videoList) {
|
||||
this.lastRenderedVideoSignature = null;
|
||||
this.videoList.innerHTML = getSidebarLoadingMarkup(
|
||||
"Fetching recent videos…"
|
||||
);
|
||||
}
|
||||
|
||||
// Create a new subscription
|
||||
this.videoSubscription = nostrClient.subscribeVideos(() => {
|
||||
|
||||
Reference in new issue
Block a user