v54: fix d:feeds to load items
This commit is contained in:
+6
-9
@@ -640,20 +640,17 @@ function initDashboard() {
|
|||||||
|
|
||||||
// Auto-expand feeds in d:feeds mode
|
// Auto-expand feeds in d:feeds mode
|
||||||
if (statusFilter === 'feeds') {
|
if (statusFilter === 'feeds') {
|
||||||
// Show the domain-feeds containers
|
// Show the domain-feeds containers and load items
|
||||||
container.querySelectorAll('.domain-feeds').forEach(feedsDiv => {
|
container.querySelectorAll('.domain-feeds').forEach(feedsDiv => {
|
||||||
feedsDiv.style.display = 'block';
|
feedsDiv.style.display = 'block';
|
||||||
});
|
});
|
||||||
// Also expand feed details
|
// Load items for all feeds
|
||||||
container.querySelectorAll('.inline-feed-block').forEach(feedBlock => {
|
container.querySelectorAll('.inline-feed-block').forEach(feedBlock => {
|
||||||
const detailDiv = feedBlock.querySelector('.feed-detail');
|
const itemsDiv = feedBlock.querySelector('.feed-items');
|
||||||
const feedUrl = feedBlock.dataset.url;
|
const feedUrl = feedBlock.dataset.url;
|
||||||
if (detailDiv && detailDiv.style.display === 'none') {
|
if (itemsDiv && !itemsDiv.dataset.loaded) {
|
||||||
detailDiv.style.display = 'block';
|
itemsDiv.dataset.loaded = 'true';
|
||||||
if (!detailDiv.dataset.loaded) {
|
loadFeedItems(feedUrl, itemsDiv);
|
||||||
detailDiv.dataset.loaded = 'true';
|
|
||||||
loadFeedDetail(feedUrl, detailDiv);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -534,7 +534,7 @@ const dashboardHTML = `<!DOCTYPE html>
|
|||||||
<div id="output"></div>
|
<div id="output"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="color: #333; font-size: 11px; margin-top: 10px;">v53</div>
|
<div style="color: #333; font-size: 11px; margin-top: 10px;">v54</div>
|
||||||
|
|
||||||
<div class="updated" id="updatedAt">Last updated: {{.UpdatedAt.Format "2006-01-02 15:04:05"}}</div>
|
<div class="updated" id="updatedAt">Last updated: {{.UpdatedAt.Format "2006-01-02 15:04:05"}}</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user